54 references to ThrowHelper
System.Memory (54)
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 (28)
102
ThrowHelper
.ThrowArgumentValidationException(startSegment, startIndex, endSegment);
116
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
132
ThrowHelper
.ThrowArgumentValidationException(array, start);
165
ThrowHelper
.ThrowInvalidOperationException();
175
ThrowHelper
.ThrowInvalidOperationException();
192
ThrowHelper
.ThrowStartOrEndArgumentValidationException(start);
221
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
236
ThrowHelper
.ThrowStartOrEndArgumentValidationException(0); // Passing value >= 0 means throw exception on length argument
245
ThrowHelper
.ThrowStartOrEndArgumentValidationException(-1); // Passing value < 0 means throw exception on start argument
251
ThrowHelper
.ThrowStartOrEndArgumentValidationException(0); // Passing value >= 0 means throw exception on length argument
268
ThrowHelper
.ThrowStartOrEndArgumentValidationException(start);
290
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
294
ThrowHelper
.ThrowStartOrEndArgumentValidationException(-1); // Passing value < 0 means throw exception on start argument
311
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
316
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.start);
325
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
367
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
372
ThrowHelper
.ThrowStartOrEndArgumentValidationException(0);
375
ThrowHelper
.ThrowStartOrEndArgumentValidationException(0);
390
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
395
ThrowHelper
.ThrowStartOrEndArgumentValidationException(0);
399
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.length);
408
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
479
ThrowHelper
.ThrowStartOrEndArgumentValidationException(start);
521
ThrowHelper
.ThrowArgumentOutOfRangeException_OffsetOutOfRange();
563
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
575
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
590
ThrowHelper
.ThrowArgumentOutOfRangeException_OffsetOutOfRange();
System\Buffers\ReadOnlySequence.Helpers.cs (17)
41
ThrowHelper
.ThrowInvalidOperationException_EndPositionNotReached();
54
ThrowHelper
.ThrowInvalidOperationException_EndPositionNotReached();
125
ThrowHelper
.ThrowInvalidOperationException_EndPositionNotReached();
201
ThrowHelper
.ThrowInvalidOperationException_EndPositionNotReached();
254
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
263
ThrowHelper
.ThrowArgumentOutOfRangeException(exceptionArgument);
290
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
299
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.offset);
327
ThrowHelper
.ThrowArgumentOutOfRangeException(argument);
348
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
368
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
390
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
413
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
418
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
433
ThrowHelper
.ThrowArgumentOutOfRangeException_PositionOutOfRange();
663
ThrowHelper
.ThrowInvalidOperationException_EndPositionNotReached();
680
ThrowHelper
.ThrowInvalidOperationException_EndPositionNotReached();
System\Buffers\SequenceReader.cs (4)
137
ThrowHelper
.ThrowArgumentOutOfRangeException_OffsetOutOfRange();
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);