blob: 2a80c9ca4d700dbe90737a6134861df25f088e0b (
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
33
34
35
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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
}
}
|