[]
        
(Showing Draft Content)

C1.JsonNet.JsonAttribute.-ctor

JsonAttribute Constructor

JsonAttribute(int)

Initializes a new instance of the JsonAttribute class.

Declaration
public JsonAttribute(int order)
Public Sub New(order As Integer)
Parameters
Type Name Description
int order

A int value indicating the order of serialization or deserialization.

JsonAttribute(bool)

Initializes a new instance of the JsonAttribute class.

Declaration
public JsonAttribute(bool skipIfDefault)
Public Sub New(skipIfDefault As Boolean)
Parameters
Type Name Description
bool skipIfDefault

A flag indicating whether the default value should be serialized or deserialized.

JsonAttribute(string)

Initializes a new instance of the JsonAttribute class.

Declaration
public JsonAttribute(string propertyName)
Public Sub New(propertyName As String)
Parameters
Type Name Description
string propertyName

The specified name the property would be serialized.

JsonAttribute(bool, int, string)

Initializes a new instance of the JsonAttribute class.

Declaration
public JsonAttribute(bool skipIfDefault, int order, string propertyName)
Public Sub New(skipIfDefault As Boolean, order As Integer, propertyName As String)
Parameters
Type Name Description
bool skipIfDefault

A flag indicating whether the default value should be serialized or deserialized.

int order

A int value indicating the order of serialization or deserialization.

string propertyName

The specified name the property would be serialized.