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