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)
699public static void ThrowFormatException(DataType dataType) 705case DataType.Boolean: 706case DataType.DateOnly: 707case DataType.DateTime: 708case DataType.DateTimeOffset: 709case DataType.TimeOnly: 710case DataType.TimeSpan: 711case DataType.Guid: 712case DataType.Version: 715case DataType.Base64String: