0

I have the following class But Im getting the error:
Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement. The error is on line: <JsonProperty(PropertyName:="error")>
note this is for .Net 2.0

Imports Newtonsoft.Json
Public Class FastWayError
    <JsonProperty(PropertyName:="error")>
    Public error_ As String
    Public generated_in As String
    Public data As Object
End Class

1 Answer 1

1

Simply add the line continuation character as follows:

Imports Newtonsoft.Json
Public Class FastWayError
    <JsonProperty(PropertyName:="error")> _
    Public error_ As String
    Public generated_in As String
    Public data As Object
End Class

It is the underscore after "error")>

Sign up to request clarification or add additional context in comments.

1 Comment

I was puttting the _ directly after the > e.g. >_ Will mark this as answer in few minutes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.