3 types derived from ReferenceHandler
System.Text.Json (3)
System\Text\Json\Serialization\IgnoreReferenceHandler.cs (1)
6internal sealed class IgnoreReferenceHandler : ReferenceHandler
System\Text\Json\Serialization\PreserveReferenceHandler.cs (1)
6internal sealed class PreserveReferenceHandler : ReferenceHandler
System\Text\Json\Serialization\ReferenceHandlerOfT.cs (1)
10public sealed class ReferenceHandler<T> : ReferenceHandler
9 references to ReferenceHandler
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
28jsonOptions.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.Preserve;
System.Text.Json (8)
src\libraries\System.Text.Json\Common\JsonKnownReferenceHandler.cs (3)
7/// The <see cref="ReferenceHandler"/> to be used at run time. 17/// Specifies that the built-in <see cref="ReferenceHandler.Preserve"/> be used to handle references. 22/// Specifies that the built-in <see cref="ReferenceHandler.IgnoreCycles"/> be used to ignore cyclic references.
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
385if (options.ReferenceHandler == ReferenceHandler.Preserve)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
76private ReferenceHandler? _referenceHandler; 749public ReferenceHandler? ReferenceHandler
System\Text\Json\Serialization\ReferenceHandler.cs (2)
46public static ReferenceHandler Preserve { get; } = new PreserveReferenceHandler(); 51public static ReferenceHandler IgnoreCycles { get; } = new IgnoreReferenceHandler();