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); 103if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(Dictionary<string, object?>))) 105Debug.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)
72ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 91TElement? element = elementConverter.Read(ref reader, elementConverter.Type, options); 127ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 134ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type);
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (4)
88ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 158ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 315if (keyConverter.IsInternalConverter && keyConverter.Type == typeof(string)) 321key = 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)
21ThrowHelper.ThrowNotSupportedException_DictionaryKeyTypeNotSupported(Type, this); 27ThrowHelper.ThrowNotSupportedException_DictionaryKeyTypeNotSupported(Type, this); 56if (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); 120ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 596ThrowHelper.ThrowInvalidOperationException_ConstructorParameterIncompleteBinding(Type);
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (1)
115return Read(ref reader, Type, options);
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (1)
104return Read(ref reader, Type, options);
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (1)
103return Read(ref reader, Type, options);
System\Text\Json\Serialization\JsonConverterOfT.cs (9)
159ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type); 239Debug.Assert(Type == state.Current.JsonTypeInfo.Type); 382Debug.Assert(jsonTypeInfo.Converter.Type == Type); 419Debug.Assert(Type == state.Current.JsonTypeInfo.Type); 465Debug.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)
270ThrowHelper.ThrowInvalidOperationException_DeserializeUnableToAssignNull(EffectiveConverter.Type); 273ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type); 339ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type);