27 references to Throw
Shared (27)
BufferWriterPool\BufferWriter.cs (4)
74
_ =
Throw
.IfLessThan(value, 0);
121
_ =
Throw
.IfOutOfRange(count, 0, _buffer.Length - WrittenCount);
182
Throw
.InvalidOperationException("Exceeded array capacity");
189
_ =
Throw
.IfLessThan(sizeHint, 0);
BufferWriterPool\BufferWriterPool.cs (2)
28
_ =
Throw
.IfLessThan(maxCapacity, 1);
29
_ =
Throw
.IfLessThan(maxBufferWriterCapacity, 1);
BufferWriterPool\BufferWriterPooledObjectPolicy.cs (2)
37
MaximumRetainedCapacity =
Throw
.IfLessThan(maximumRetainedCapacity, 1);
63
_ =
Throw
.IfNull(obj);
Data.Validation\TimeSpanAttribute.cs (3)
88
_ =
Throw
.IfNullOrWhitespace(min);
101
_ =
Throw
.IfNullOrWhitespace(min);
102
_ =
Throw
.IfNullOrWhitespace(max);
Debugger\DebuggerExtensions.cs (4)
6
using Throw = Microsoft.Shared.Diagnostics.
Throw
;
28
_ =
Throw
.IfNull(services);
42
_ =
Throw
.IfNull(services);
56
_ =
Throw
.IfNull(services);
Memoization\MemoizedFunction.cs (2)
68
_function =
Throw
.IfNull(function);
141
_function =
Throw
.IfNull(function);
Pools\PoolFactory.cs (10)
42
_ =
Throw
.IfLessThan(maxCapacity, 1);
57
_ =
Throw
.IfNull(policy);
58
_ =
Throw
.IfLessThan(maxCapacity, 1);
75
_ =
Throw
.IfLessThan(maxCapacity, 1);
88
_ =
Throw
.IfLessThan(maxCapacity, 1);
89
_ =
Throw
.IfLessThan(maxStringBuilderCapacity, 1);
116
_ =
Throw
.IfLessThan(maxCapacity, 1);
136
_ =
Throw
.IfLessThan(maxCapacity, 1);
155
_ =
Throw
.IfLessThan(maxCapacity, 1);
177
_ =
Throw
.IfLessThan(maxCapacity, 1);