12 references to IsInRangeInclusive
System.Text.Json (12)
System\Text\Json\JsonHelpers.Date.cs (2)
32
return
IsInRangeInclusive
(length, JsonConstants.MinimumDateTimeParseLength, JsonConstants.MaximumEscapedDateTimeOffsetParseLength);
38
return
IsInRangeInclusive
(length, JsonConstants.MinimumDateTimeParseLength, JsonConstants.MaximumDateTimeOffsetParseLength);
System\Text\Json\Reader\Utf8JsonReader.cs (1)
1597
JsonHelpers.
IsInRangeInclusive
(nextByte, '0', '9') ? ExceptionResource.InvalidLeadingZeroInNumber : ExceptionResource.ExpectedEndOfDigitNotFound,
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
1341
JsonHelpers.
IsInRangeInclusive
(nextByte, '0', '9') ? ExceptionResource.InvalidLeadingZeroInNumber : ExceptionResource.ExpectedEndOfDigitNotFound,
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (2)
1263
if (!JsonHelpers.
IsInRangeInclusive
(ValueSpan.Length, JsonConstants.MinimumDateTimeParseLength, JsonConstants.MaximumEscapedDateTimeOffsetParseLength))
1328
if (!JsonHelpers.
IsInRangeInclusive
(ValueSpan.Length, JsonConstants.MinimumDateTimeParseLength, JsonConstants.MaximumEscapedDateTimeOffsetParseLength))
System\Text\Json\Serialization\Converters\Value\CharConverter.cs (1)
20
if (!JsonHelpers.
IsInRangeInclusive
(reader.ValueLength, 1, MaxEscapedCharacterLength))
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (1)
33
if (!JsonHelpers.
IsInRangeInclusive
(reader.ValueLength, FormatLength, MaxEscapedFormatLength))
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (1)
37
if (!JsonHelpers.
IsInRangeInclusive
(reader.ValueLength, MinimumTimeOnlyFormatLength, MaximumEscapedTimeOnlyFormatLength))
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (1)
37
if (!JsonHelpers.
IsInRangeInclusive
(reader.ValueLength, MinimumTimeSpanFormatLength, MaximumEscapedTimeSpanFormatLength))
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
40
if (!JsonHelpers.
IsInRangeInclusive
(reader.ValueLength, MinimumVersionLength, MaximumEscapedVersionLength))
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
86
JsonHelpers.
IsInRangeInclusive
((int)handling, 0,