36 references to ExceptionArgument
System.Memory (36)
System\Buffers\ArrayMemoryPool.cs (1)
17
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.minimumBufferSize);
System\Buffers\BuffersExtensions.cs (3)
69
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.destination);
81
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.destination);
147
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.writer);
System\Buffers\ReadOnlySequence.cs (7)
116
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
223
begin = SeekMultiSegment(startSegment.Next!, endObject!, endIndex, start - currentLength,
ExceptionArgument
.start);
316
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.start);
328
SequencePosition begin = SeekMultiSegment(startSegment.Next!, sliceEndObject, (int)sliceEndIndex, start - currentLength,
ExceptionArgument
.start);
399
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.length);
411
SequencePosition end = SeekMultiSegment(sliceStartSegment.Next!, endObject, (int)endIndex, length - currentLength,
ExceptionArgument
.length);
484
SequencePosition begin = Seek(start,
ExceptionArgument
.start);
System\Buffers\ReadOnlySequence.Helpers.cs (6)
235
internal SequencePosition Seek(long offset,
ExceptionArgument
exceptionArgument =
ExceptionArgument
.offset)
293
return SeekMultiSegment(startSegment.Next!, endObject!, endIndex, offset - currentLength,
ExceptionArgument
.offset);
299
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.offset);
307
private static SequencePosition SeekMultiSegment(ReadOnlySequenceSegment<T>? currentSegment, object endObject, int endIndex, long offset,
ExceptionArgument
argument)
435
return SeekMultiSegment(startSegment.Next, endObject, endIndex, length - currentLength,
ExceptionArgument
.length);
System\Buffers\SequenceReader.cs (3)
223
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count);
362
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count);
395
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count);
System\Buffers\SequenceReader.Search.cs (1)
515
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count);
System\ThrowHelper.cs (15)
28
internal static void ThrowArgumentNullException(
ExceptionArgument
argument) { throw CreateArgumentNullException(argument); }
30
private static ArgumentNullException CreateArgumentNullException(
ExceptionArgument
argument) { return new ArgumentNullException(argument.ToString()); }
33
internal static void ThrowArgumentOutOfRangeException(
ExceptionArgument
argument) { throw CreateArgumentOutOfRangeException(argument); }
35
private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(
ExceptionArgument
argument) { return new ArgumentOutOfRangeException(argument.ToString()); }
55
private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException_OffsetOutOfRange() { return new ArgumentOutOfRangeException(nameof(
ExceptionArgument
.offset)); }
67
return CreateArgumentNullException(
ExceptionArgument
.startSegment);
69
return CreateArgumentNullException(
ExceptionArgument
.endSegment);
71
return CreateArgumentOutOfRangeException(
ExceptionArgument
.endSegment);
73
return CreateArgumentOutOfRangeException(
ExceptionArgument
.startIndex);
75
return CreateArgumentOutOfRangeException(
ExceptionArgument
.endIndex);
85
return CreateArgumentNullException(
ExceptionArgument
.array);
87
return CreateArgumentOutOfRangeException(
ExceptionArgument
.start);
89
return CreateArgumentOutOfRangeException(
ExceptionArgument
.length);
102
return CreateArgumentOutOfRangeException(
ExceptionArgument
.start);
103
return CreateArgumentOutOfRangeException(
ExceptionArgument
.length);