8 writes to JsonTypeInfo
System.Text.Json (8)
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (3)
37state.Current.JsonTypeInfo = state.Current.JsonTypeInfo.ElementTypeInfo!; 41state.Current.JsonTypeInfo = previousTypeInfo; 45state.Current.JsonTypeInfo = previousTypeInfo;
System\Text\Json\Serialization\ReadStack.cs (5)
105Current.JsonTypeInfo = jsonTypeInfo; 133Current.JsonTypeInfo = jsonTypeInfo; 217Current.JsonTypeInfo = derivedJsonTypeInfo; 236(Current.JsonTypeInfo, Current.PolymorphicJsonTypeInfo) = (Current.PolymorphicJsonTypeInfo, Current.JsonTypeInfo); 250(Current.JsonTypeInfo, Current.PolymorphicJsonTypeInfo) = (Current.PolymorphicJsonTypeInfo, Current.JsonTypeInfo);
64 references to JsonTypeInfo
System.Text.Json (64)
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (1)
32(Func<IEnumerable<KeyValuePair<TKey, TValue>>, TDictionary>?)state.Current.JsonTypeInfo.CreateObjectWithArgs;
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (1)
30JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (2)
33JsonTypeInfo typeInfo = state.Current.JsonTypeInfo; 68JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (2)
48JsonTypeInfo typeInfo = state.Current.JsonTypeInfo; 79JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (3)
28if (state.Current.JsonTypeInfo.CreateObject == null) 30ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(state.Current.JsonTypeInfo.Type); 33state.Current.ReturnValue = state.Current.JsonTypeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\QueueOfTConverter.cs (3)
26if (state.Current.JsonTypeInfo.CreateObject == null) 28ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(state.Current.JsonTypeInfo.Type); 31state.Current.ReturnValue = state.Current.JsonTypeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\StackOfTConverter.cs (3)
27if (state.Current.JsonTypeInfo.CreateObject == null) 29ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(state.Current.JsonTypeInfo.Type); 32state.Current.ReturnValue = state.Current.JsonTypeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (2)
18var addMethodDelegate = ((Action<TCollection, object?>?)state.Current.JsonTypeInfo.AddMethodDelegate); 30JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (1)
42state.Current.JsonPropertyInfo = state.Current.JsonTypeInfo.ElementTypeInfo!.PropertyInfoForTypeInfo;
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (1)
42state.Current.JsonPropertyInfo = state.Current.JsonTypeInfo.ElementTypeInfo!.PropertyInfoForTypeInfo;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
22JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (7)
26JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 104Debug.Assert(jsonPropertyInfo == state.Current.JsonTypeInfo.ExtensionDataProperty); 236Debug.Assert(jsonPropertyInfo == state.Current.JsonTypeInfo.ExtensionDataProperty); 350ArrayPool<FoundProperty>.Shared.Rent(Math.Max(1, state.Current.JsonTypeInfo.PropertyCache.Length)); 546argumentState.FoundPropertiesAsync = ArrayPool<FoundPropertyAsync>.Shared.Rent(Math.Max(1, state.Current.JsonTypeInfo.PropertyCache.Length)); 575JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 604Debug.Assert(state.Current.JsonTypeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.cs (4)
27ThrowHelper.ThrowJsonException_ConstructorParameterDisallowNull(jsonParameterInfo.Name, state.Current.JsonTypeInfo.Type); 39Debug.Assert(frame.JsonTypeInfo.CreateObjectWithArgs != null); 44Func<object[], T> createObject = (Func<object[], T>)frame.JsonTypeInfo.CreateObjectWithArgs; 54JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (3)
20frame.JsonTypeInfo.CreateObjectWithArgs!; 80ThrowHelper.ThrowJsonException_ConstructorParameterDisallowNull(info.Name, state.Current.JsonTypeInfo.Type); 91JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (2)
36JsonTypeInfo previousTypeInfo = state.Current.JsonTypeInfo; 37state.Current.JsonTypeInfo = state.Current.JsonTypeInfo.ElementTypeInfo!;
System\Text\Json\Serialization\JsonConverterOfT.cs (3)
232JsonTypeInfo originalJsonTypeInfo = state.Current.JsonTypeInfo; 235Debug.Assert(Type == state.Current.JsonTypeInfo.Type); 277Debug.Assert(ReferenceEquals(originalJsonTypeInfo, state.Current.JsonTypeInfo));
System\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs (1)
40bool success = TryRead(ref reader, state.Current.JsonTypeInfo.Type, options, ref state, out value, out _);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (1)
27JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
904Debug.Assert(this == state.Current.JsonTypeInfo.ExtensionDataProperty);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (3)
298ThrowHelper.ThrowJsonException_PropertySetterDisallowNull(Name, state.Current.JsonTypeInfo.Type); 321ThrowHelper.ThrowJsonException_PropertySetterDisallowNull(Name, state.Current.JsonTypeInfo.Type); 350ThrowHelper.ThrowJsonException_PropertySetterDisallowNull(Name, state.Current.JsonTypeInfo.Type);
System\Text\Json\Serialization\ReadStack.cs (12)
216Current.PolymorphicJsonTypeInfo = Current.JsonTypeInfo; 236(Current.JsonTypeInfo, Current.PolymorphicJsonTypeInfo) = (Current.PolymorphicJsonTypeInfo, Current.JsonTypeInfo); 238return Current.JsonTypeInfo.Converter; 250(Current.JsonTypeInfo, Current.PolymorphicJsonTypeInfo) = (Current.PolymorphicJsonTypeInfo, Current.JsonTypeInfo); 286if (frame.JsonTypeInfo != null && frame.IsProcessingEnumerable()) 379if (_stack[i].JsonTypeInfo.UsesParameterizedConstructor) 381return _stack[i].JsonTypeInfo; 385Debug.Assert(Current.JsonTypeInfo.UsesParameterizedConstructor); 386return Current.JsonTypeInfo; 392if (Current.JsonTypeInfo.UsesParameterizedConstructor) 399private string DebuggerDisplay => $"Path = {JsonPath()}, Current = ConverterStrategy.{Current.JsonTypeInfo?.Converter.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";
System\Text\Json\Serialization\ReadStackFrame.cs (5)
64: JsonTypeInfo; 119return JsonTypeInfo.Kind is JsonTypeInfoKind.Dictionary; 127return JsonTypeInfo.Kind is JsonTypeInfoKind.Enumerable; 166private string DebuggerDisplay => $"ConverterStrategy.{JsonTypeInfo?.Converter.ConverterStrategy}, {JsonTypeInfo?.Type.Name}";
System\Text\Json\ThrowHelper.Serialization.cs (2)
481Type propertyType = state.Current.JsonPropertyInfo?.PropertyType ?? state.Current.JsonTypeInfo.Type; 575Type propertyType = state.Current.JsonPropertyInfo?.PropertyType ?? state.Current.JsonTypeInfo.Type;