TypeNameHandling Enumeration
Specifies type name handling options for the JsonSerializer.
Namespace:
cdeNewtonsoft.JsonAssembly: C-DEngine (in C-DEngine.dll)
Syntax
[FlagsAttribute] public enum TypeNameHandling
<FlagsAttribute> _ Public Enumeration TypeNameHandling
[FlagsAttribute] public enum class TypeNameHandling
Members
Member name | Description | |
---|---|---|
None | Do not include the .NET type name when serializing types. | |
Objects | Include the .NET type name when serializing into a JSON object structure. | |
Arrays | Include the .NET type name when serializing into a JSON array structure. | |
All | Always include the .NET type name when serializing. | |
Auto | Include the .NET type name when the type of the object being serialized is not the same as its declared type. Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON you must specify a root type object with SerializeObject(Object) or Serialize(TextWriter, Object). |