3 types derived from ReferenceHandler
System.Text.Json (3)
System\Text\Json\Serialization\IgnoreReferenceHandler.cs (1)
6
internal sealed class IgnoreReferenceHandler :
ReferenceHandler
System\Text\Json\Serialization\PreserveReferenceHandler.cs (1)
6
internal sealed class PreserveReferenceHandler :
ReferenceHandler
System\Text\Json\Serialization\ReferenceHandlerOfT.cs (1)
10
public sealed class ReferenceHandler<T> :
ReferenceHandler
9 references to ReferenceHandler
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
28
jsonOptions.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)
385
if (options.ReferenceHandler ==
ReferenceHandler
.Preserve)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
76
private
ReferenceHandler
? _referenceHandler;
749
public
ReferenceHandler
? ReferenceHandler
System\Text\Json\Serialization\ReferenceHandler.cs (2)
46
public static
ReferenceHandler
Preserve { get; } = new PreserveReferenceHandler();
51
public static
ReferenceHandler
IgnoreCycles { get; } = new IgnoreReferenceHandler();