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