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