27 references to Throw
Shared (27)
BufferWriterPool\BufferWriter.cs (4)
74_ = Throw.IfLessThan(value, 0); 121_ = Throw.IfOutOfRange(count, 0, _buffer.Length - WrittenCount); 182Throw.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)
37MaximumRetainedCapacity = 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)
6using 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);