2 writes to JsonTypeInfo
System.Text.Json (2)
System\Text\Json\Serialization\WriteStack.cs (2)
154Current.JsonTypeInfo = jsonTypeInfo; 207Current.JsonTypeInfo = jsonTypeInfo;
20 references to JsonTypeInfo
System.Text.Json (20)
System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs (1)
43JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
46JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
59JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
306JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
346JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (1)
63state.Current.JsonPropertyInfo = state.Current.JsonTypeInfo.ElementTypeInfo!.PropertyInfoForTypeInfo;
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (1)
64state.Current.JsonPropertyInfo = state.Current.JsonTypeInfo.ElementTypeInfo!.PropertyInfoForTypeInfo;
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
53JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
322JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (1)
58state.Current.JsonPropertyInfo = state.Current.JsonTypeInfo.ElementTypeInfo!.PropertyInfoForTypeInfo;
System\Text\Json\Serialization\JsonConverterOfT.cs (4)
412JsonTypeInfo originalJsonTypeInfo = state.Current.JsonTypeInfo; 415Debug.Assert(Type == state.Current.JsonTypeInfo.Type); 440Debug.Assert(ReferenceEquals(originalJsonTypeInfo, state.Current.JsonTypeInfo)); 483state.Current.JsonPropertyInfo = state.Current.JsonTypeInfo.ElementTypeInfo!.PropertyInfoForTypeInfo;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
214ThrowHelper.ThrowJsonException_PropertyGetterDisallowNull(Name, state.Current.JsonTypeInfo.Type);
System\Text\Json\Serialization\WriteStack.cs (2)
181return _count == 0 ? Current.JsonTypeInfo : Current.JsonPropertyInfo!.JsonTypeInfo; 446private string DebuggerDisplay => $"Path = {PropertyPath()} Current = ConverterStrategy.{Current.JsonPropertyInfo?.EffectiveConverter.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";
System\Text\Json\Serialization\WriteStackFrame.cs (2)
169private readonly string DebuggerDisplay => $"ConverterStrategy.{JsonTypeInfo?.Converter.ConverterStrategy}, {JsonTypeInfo?.Type.Name}";
System\Text\Json\ThrowHelper.Serialization.cs (1)
603Type propertyType = state.Current.JsonPropertyInfo?.PropertyType ?? state.Current.JsonTypeInfo.Type;