blob: 147af15949a2d26b7cc3a40d3b016f73dacd7860 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using System;
namespace Newtonsoft.Json
{
/// <summary>
/// Specifies type name handling options for the <see cref="JsonSerializer"/>.
/// </summary>
[Flags]
public enum TypeNameHandling
{
/// <summary>
/// Do not include the .NET type name when serializing types.
/// </summary>
None = 0,
/// <summary>
/// Include the .NET type name when serializing into a JSON object structure.
/// </summary>
Objects = 1,
/// <summary>
/// Include the .NET type name when serializing into a JSON array structure.
/// </summary>
Arrays = 2,
/// <summary>
/// Include the .NET type name when the type of the object being serialized is not the same as its declared type.
/// </summary>
Auto = 4,
/// <summary>
/// Always include the .NET type name when serializing.
/// </summary>
All = Objects | Arrays
}
}
|