2 types derived from ReferenceResolver
System.Text.Json (2)
System\Text\Json\Serialization\IgnoreReferenceResolver.cs (1)
9
internal sealed class IgnoreReferenceResolver :
ReferenceResolver
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
12
internal sealed class PreserveReferenceResolver :
ReferenceResolver
13 references to ReferenceResolver
System.Text.Json (13)
System\Text\Json\Serialization\IgnoreReferenceHandler.cs (1)
10
public override
ReferenceResolver
CreateResolver() => new IgnoreReferenceResolver();
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
147
ReferenceResolver
resolver = state.ReferenceResolver;
System\Text\Json\Serialization\PreserveReferenceHandler.cs (2)
8
public override
ReferenceResolver
CreateResolver() => throw new InvalidOperationException();
10
internal override
ReferenceResolver
CreateResolver(bool writing) => new PreserveReferenceResolver(writing);
System\Text\Json\Serialization\ReadStack.cs (1)
59
public
ReferenceResolver
ReferenceResolver;
System\Text\Json\Serialization\ReferenceHandler.cs (3)
54
/// Returns the <see cref="
ReferenceResolver
"/> used for each serialization call.
57
public abstract
ReferenceResolver
CreateResolver();
63
internal virtual
ReferenceResolver
CreateResolver(bool writing) => CreateResolver();
System\Text\Json\Serialization\ReferenceHandlerOfT.cs (4)
9
/// <typeparam name="T">The type of the <see cref="
ReferenceResolver
"/> to create on each serialization or deserialization call.</typeparam>
11
where T :
ReferenceResolver
, new()
14
/// Creates a new <see cref="
ReferenceResolver
"/> of type <typeparamref name="T"/> used for each serialization call.
17
public override
ReferenceResolver
CreateResolver() => new T();
System\Text\Json\Serialization\WriteStack.cs (1)
100
public
ReferenceResolver
ReferenceResolver;