59 references to ThrowHelper
System.IO.Pipelines (59)
System\IO\Pipelines\Pipe.cs (22)
107ThrowHelper.ThrowArgumentNullException(ExceptionArgument.options); 138ThrowHelper.ThrowInvalidOperationException_NoWritingAllowed(); 143ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sizeHint); 155ThrowHelper.ThrowInvalidOperationException_NoWritingAllowed(); 160ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sizeHint); 430ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.bytes); 449ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.bytes); 563ThrowHelper.ThrowInvalidOperationException_NoReadingAllowed(); 574ThrowHelper.ThrowInvalidOperationException_InvalidExaminedOrConsumedPosition(); 620ThrowHelper.ThrowInvalidOperationException_AdvanceToInvalidCursor(); 739ThrowHelper.ThrowArgumentNullException(ExceptionArgument.callback); 778ThrowHelper.ThrowArgumentNullException(ExceptionArgument.callback); 797ThrowHelper.ThrowInvalidOperationException_NoReadingAllowed(); 856ThrowHelper.ThrowInvalidOperationException_NoReadingAllowed(); 891ThrowHelper.ThrowInvalidOperationException_NoReadingAllowed(); 902ThrowHelper.ThrowInvalidOperationException_AlreadyReading(); 1037Writer.Complete(ThrowHelper.CreateInvalidOperationException_NoConcurrentOperation()); 1053ThrowHelper.ThrowInvalidOperationException_GetResultNotCompleted(); 1131ThrowHelper.ThrowInvalidOperationException_GetResultNotCompleted(); 1167ThrowHelper.ThrowInvalidOperationException_NoWritingAllowed(); 1250Reader.Complete(ThrowHelper.CreateInvalidOperationException_NoConcurrentOperation()); 1290ThrowHelper.ThrowInvalidOperationException_ResetIncompleteReaderWriter();
System\IO\Pipelines\PipeOperationState.cs (3)
19ThrowHelper.ThrowInvalidOperationException_AlreadyReading(); 30ThrowHelper.ThrowInvalidOperationException_AlreadyReading(); 42ThrowHelper.ThrowInvalidOperationException_NoReadToComplete();
System\IO\Pipelines\PipeOptions.cs (2)
64ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.pauseWriterThreshold); 81ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.resumeWriterThreshold);
System\IO\Pipelines\PipeReader.cs (5)
55ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.minimumSize); 181ThrowHelper.ThrowArgumentNullException(ExceptionArgument.destination); 203ThrowHelper.ThrowArgumentNullException(ExceptionArgument.destination); 245ThrowHelper.ThrowOperationCanceledException_ReadCanceled(); 262ThrowHelper.ThrowOperationCanceledException_FlushCanceled();
System\IO\Pipelines\PipeReaderStream.cs (4)
52ThrowHelper.ThrowArgumentNullException(ExceptionArgument.buffer); 87ThrowHelper.ThrowArgumentNullException(ExceptionArgument.buffer); 115ThrowHelper.ThrowOperationCanceledException_ReadCanceled(); 147ThrowHelper.ThrowInvalidOperationException_InvalidZeroByteRead();
System\IO\Pipelines\PipeWriter.cs (2)
141ThrowHelper.ThrowOperationCanceledException_FlushCanceled(); 155public virtual long UnflushedBytes => throw ThrowHelper.CreateNotSupportedException_UnflushedBytes();
System\IO\Pipelines\PipeWriterStream.cs (3)
76ThrowHelper.ThrowArgumentNullException(ExceptionArgument.buffer); 107ThrowHelper.ThrowOperationCanceledException_FlushCanceled(); 119ThrowHelper.ThrowOperationCanceledException_FlushCanceled();
System\IO\Pipelines\SequencePipeReader.cs (1)
93ThrowHelper.ThrowInvalidOperationException_NoReadingAllowed();
System\IO\Pipelines\StreamPipeExtensions.cs (2)
21ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source); 25ThrowHelper.ThrowArgumentNullException(ExceptionArgument.destination);
System\IO\Pipelines\StreamPipeReader.cs (8)
42ThrowHelper.ThrowArgumentNullException(ExceptionArgument.readingStream); 46ThrowHelper.ThrowArgumentNullException(ExceptionArgument.options); 101ThrowHelper.ThrowInvalidOperationException_AdvanceToInvalidCursor(); 111ThrowHelper.ThrowInvalidOperationException_AdvanceToInvalidCursor(); 317ThrowHelper.ThrowOperationCanceledException_ReadCanceled(); 341ThrowHelper.ThrowOperationCanceledException_FlushCanceled(); 388ThrowHelper.ThrowOperationCanceledException_ReadCanceled(); 452ThrowHelper.ThrowInvalidOperationException_NoReadingAllowed();
System\IO\Pipelines\StreamPipeWriter.cs (7)
50ThrowHelper.ThrowArgumentNullException(ExceptionArgument.writingStream); 54ThrowHelper.ThrowArgumentNullException(ExceptionArgument.options); 75ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.bytes); 88ThrowHelper.ThrowInvalidOperationException_NoWritingAllowed(); 93ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sizeHint); 106ThrowHelper.ThrowInvalidOperationException_NoWritingAllowed(); 111ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sizeHint);