You are here: Symbol Reference > Stimulsoft.Base.Json Namespace > MemberSerialization Enumeration
Stimulsoft Reports Class Reference
ContentsIndexHome
PreviousUpNext
Stimulsoft.Base.Json.MemberSerialization Enumeration

Specifies the member serialization options for the JsonSerializer.

Syntax
C++
C#
Visual Basic
public: enum MemberSerialization { OptOut = 0, OptIn = 1, Fields = 2#pragmawarningrestore1584 };
Members
Members 
Description 
OptOut 
All public members are serialized by default. Members can be excluded using JsonIgnoreAttribute or NonSerializedAttribute. This is the default member serialization mode.  
OptIn 
Only members must be marked with JsonPropertyAttribute or DataMemberAttribute are serialized. This member serialization mode can also be set by marking the class with DataContractAttribute.  
Fields 
All public and private fields are serialized. Members can be excluded using JsonIgnoreAttribute or NonSerializedAttribute. This member serialization mode can also be set by marking the class with SerializableAttribute and setting IgnoreSerializableAttribute on DefaultContractResolver to false.  
Made with Doc-O-Matic.
What do you think about this topic? Send feedback!
Copyright (c) 2017. All rights reserved.