4 writes to _typeInfoResolver
System.Text.Json (4)
System\Text\Json\Serialization\JsonSerializerOptions.cs (4)
155
_typeInfoResolver
= options._typeInfoResolver;
242
_typeInfoResolver
= value;
938
_typeInfoResolver
= defaultResolver;
1118
_options.
_typeInfoResolver
= this;
15 references to _typeInfoResolver
System.Text.Json (15)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (4)
408
Debug.Assert(options.
_typeInfoResolver
!= null);
520
left.
_typeInfoResolver
== right.
_typeInfoResolver
&&
580
AddHashCode(ref hc, options.
_typeInfoResolver
);
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (1)
52
if (
_typeInfoResolver
is null)
System\Text\Json\Serialization\JsonSerializerOptions.cs (10)
155
_typeInfoResolver = options.
_typeInfoResolver
;
229
return
_typeInfoResolver
;
879
if (
_typeInfoResolver
is null)
934
switch (
_typeInfoResolver
)
962
else if (
_typeInfoResolver
is null or EmptyJsonTypeInfoResolver)
967
Debug.Assert(
_typeInfoResolver
!= null);
986
IJsonTypeInfoResolver? resolver = _effectiveJsonTypeInfoResolver ??
_typeInfoResolver
;
1070
ThrowHelper.ThrowInvalidOperationException_SerializerOptionsReadOnly(
_typeInfoResolver
as JsonSerializerContext);
1095
AddFlattened(options.
_typeInfoResolver
);
1102
if (ReferenceEquals(item, this) || ReferenceEquals(item, _options.
_typeInfoResolver
))