yangyin
2025-02-28 baa80d650adebcce70f1113cc1020c6039c159a0
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 DPumpHydr.WinFrmUI.WenSkin.Json
{
    /// <summary>
    /// Specifies reference handling options for the <see cref="T:Newtonsoft.Json.JsonSerializer" />.
    /// Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable.
    /// </summary>
    /// <example>
    ///   <code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\SerializationTests.cs" region="PreservingObjectReferencesOn" title="Preserve Object References" />       
    /// </example>
    [Flags]
    public enum PreserveReferencesHandling
    {
        /// <summary>
        /// Do not preserve references when serializing types.
        /// </summary>
        None = 0x0,
        /// <summary>
        /// Preserve references when serializing into a JSON object structure.
        /// </summary>
        Objects = 0x1,
        /// <summary>
        /// Preserve references when serializing into a JSON array structure.
        /// </summary>
        Arrays = 0x2,
        /// <summary>
        /// Preserve references when serializing.
        /// </summary>
        All = 0x3
    }
}