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