35 references to NumericType
System.Text.Json (35)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (24)
314
ThrowHelper.ThrowFormatException(
NumericType
.Byte);
324
ThrowHelper.ThrowFormatException(
NumericType
.Byte);
349
ThrowHelper.ThrowFormatException(
NumericType
.SByte);
359
ThrowHelper.ThrowFormatException(
NumericType
.SByte);
383
ThrowHelper.ThrowFormatException(
NumericType
.Int16);
393
ThrowHelper.ThrowFormatException(
NumericType
.Int16);
417
ThrowHelper.ThrowFormatException(
NumericType
.Int32);
427
ThrowHelper.ThrowFormatException(
NumericType
.Int32);
451
ThrowHelper.ThrowFormatException(
NumericType
.Int64);
461
ThrowHelper.ThrowFormatException(
NumericType
.Int64);
486
ThrowHelper.ThrowFormatException(
NumericType
.UInt16);
496
ThrowHelper.ThrowFormatException(
NumericType
.UInt16);
521
ThrowHelper.ThrowFormatException(
NumericType
.UInt32);
531
ThrowHelper.ThrowFormatException(
NumericType
.UInt32);
556
ThrowHelper.ThrowFormatException(
NumericType
.UInt64);
566
ThrowHelper.ThrowFormatException(
NumericType
.UInt64);
589
ThrowHelper.ThrowFormatException(
NumericType
.Single);
610
ThrowHelper.ThrowFormatException(
NumericType
.Single);
622
ThrowHelper.ThrowFormatException(
NumericType
.Single);
646
ThrowHelper.ThrowFormatException(
NumericType
.Double);
667
ThrowHelper.ThrowFormatException(
NumericType
.Double);
679
ThrowHelper.ThrowFormatException(
NumericType
.Double);
703
ThrowHelper.ThrowFormatException(
NumericType
.Decimal);
713
ThrowHelper.ThrowFormatException(
NumericType
.Decimal);
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (2)
72
ThrowHelper.ThrowFormatException(
NumericType
.Half);
116
ThrowHelper.ThrowFormatException(
NumericType
.Half);
System\Text\Json\Serialization\Converters\Value\Ieee754FloatingPointConverter.cs (2)
27
private readonly
NumericType
_numericType;
29
public Ieee754FloatingPointConverter(
NumericType
numericType)
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (1)
59
ThrowHelper.ThrowFormatException(
NumericType
.Int128);
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (1)
59
ThrowHelper.ThrowFormatException(
NumericType
.UInt128);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (4)
184
field ??= new Ieee754FloatingPointConverter<System.Numerics.BFloat16>(
NumericType
.BFloat16);
191
field ??= new Ieee754FloatingPointConverter<System.Numerics.Decimal32>(
NumericType
.Decimal32);
198
field ??= new Ieee754FloatingPointConverter<System.Numerics.Decimal64>(
NumericType
.Decimal64);
205
field ??= new Ieee754FloatingPointConverter<System.Numerics.Decimal128>(
NumericType
.Decimal128);
System\Text\Json\ThrowHelper.cs (1)
658
public static void ThrowFormatException(
NumericType
numericType)