[]
        
(Showing Draft Content)

C1.JsonNet.JsonAttribute.-ctor

JsonAttribute Constructor

JsonAttribute(int)

Initializes a new instance of the JsonAttribute class.

Declaration
public JsonAttribute(int order)
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)
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)
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)
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.