Base:
property
Type
System.Text.Json.Serialization.JsonConverter.Type
55 references to Type
System.Text.Json (55)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (2)
19ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state); 40ThrowHelper.ThrowNotSupportedException_TypeRequiresAsyncSerialization(Type);
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (3)
36ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state); 43if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<TElement>))) 45Debug.Assert(Type.IsInterface);
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (3)
38ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state); 102if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(Dictionary<string, object?>))) 104Debug.Assert(Type.IsInterface);
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (3)
38ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state); 45if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(Dictionary<TKey, TValue>))) 47Debug.Assert(Type.IsInterface);
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (1)
30ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state);
System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs (1)
28ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state);
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (3)
35ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state); 82if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<object?>))) 84Debug.Assert(Type.IsInterface);
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (3)
36ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state); 43if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<TElement>))) 45Debug.Assert(Type.IsInterface);
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (1)
26ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state);
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (3)
33ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state); 40if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(HashSet<TElement>))) 42Debug.Assert(Type.IsInterface);
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (4)
77ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 98TElement? element = elementConverter.Read(ref reader, elementConverter.Type, options); 132ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 139ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type);
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (4)
89ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 159ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 321if (keyConverter.IsInternalConverter && keyConverter.Type == typeof(string)) 327key = keyConverter.ReadAsPropertyNameCore(ref reader, keyConverter.Type, options);
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (1)
35ThrowHelper.ThrowNotSupportedException_CannotPopulateCollection(Type, ref reader, ref state);
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (3)
22ThrowHelper.ThrowNotSupportedException_DictionaryKeyTypeNotSupported(Type, this); 28ThrowHelper.ThrowNotSupportedException_DictionaryKeyTypeNotSupported(Type, this); 57if (runtimeType == Type)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (2)
32ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 62ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type);
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (3)
45ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 125ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 581ThrowHelper.ThrowInvalidOperationException_ConstructorParameterIncompleteBinding(Type);
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (1)
109return Read(ref reader, Type, options);
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (1)
87return Read(ref reader, Type, options);
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (1)
87return Read(ref reader, Type, options);
System\Text\Json\Serialization\JsonConverterOfT.cs (9)
155ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 235Debug.Assert(Type == state.Current.JsonTypeInfo.Type); 378Debug.Assert(jsonTypeInfo.Converter.Type == Type); 415Debug.Assert(Type == state.Current.JsonTypeInfo.Type); 461Debug.Assert(Type == typeof(Nodes.JsonObject)); 597ThrowHelper.ThrowNotSupportedException_DictionaryKeyTypeNotSupported(Type, this); 630ThrowHelper.ThrowNotSupportedException_DictionaryKeyTypeNotSupported(Type, this); 647Debug.Assert(!IsInternalConverter && Type == typeof(string)); 671if (result is null && DefaultJsonTypeInfoResolver.TryGetDefaultSimpleConverter(Type, out JsonConverter? defaultConverter))
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (3)
288ThrowHelper.ThrowInvalidOperationException_DeserializeUnableToAssignNull(EffectiveConverter.Type); 291ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type); 373ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type);