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