28 references to DataType
System.Text.Json (28)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (7)
290ThrowHelper.ThrowFormatException(DataType.Base64String); 735ThrowHelper.ThrowFormatException(DataType.DateTime); 745ThrowHelper.ThrowFormatException(DataType.DateTime); 768ThrowHelper.ThrowFormatException(DataType.DateTimeOffset); 778ThrowHelper.ThrowFormatException(DataType.DateTimeOffset); 801ThrowHelper.ThrowFormatException(DataType.Guid); 811ThrowHelper.ThrowFormatException(DataType.Guid);
System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs (1)
30ThrowHelper.ThrowFormatException(DataType.Boolean);
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (2)
35ThrowHelper.ThrowFormatException(DataType.DateOnly); 52ThrowHelper.ThrowFormatException(DataType.DateOnly);
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (3)
39ThrowHelper.ThrowFormatException(DataType.TimeOnly); 60ThrowHelper.ThrowFormatException(DataType.TimeOnly); 72ThrowHelper.ThrowFormatException(DataType.TimeOnly);
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (3)
39ThrowHelper.ThrowFormatException(DataType.TimeSpan); 59ThrowHelper.ThrowFormatException(DataType.TimeSpan); 71ThrowHelper.ThrowFormatException(DataType.TimeSpan);
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (2)
42ThrowHelper.ThrowFormatException(DataType.Version); 55ThrowHelper.ThrowFormatException(DataType.Version);
System\Text\Json\ThrowHelper.cs (10)
690public static void ThrowFormatException(DataType dataType) 696case DataType.Boolean: 697case DataType.DateOnly: 698case DataType.DateTime: 699case DataType.DateTimeOffset: 700case DataType.TimeOnly: 701case DataType.TimeSpan: 702case DataType.Guid: 703case DataType.Version: 706case DataType.Base64String: