18 references to Throw
Microsoft.Extensions.Compliance.Abstractions (18)
Classification\DataClassification.cs (2)
41TaxonomyName = Throw.IfNullOrWhitespace(taxonomyName); 42Value = Throw.IfNullOrWhitespace(value);
Classification\DataClassificationSet.cs (3)
36_ = Throw.IfNull(classifications); 47_ = Throw.IfNull(classifications); 78_ = Throw.IfNull(other);
Redaction\NullRedactor.cs (1)
28Throw.IfBufferTooSmall(destination.Length, source.Length, nameof(destination));
Redaction\RedactionStringBuilderExtensions.cs (2)
48_ = Throw.IfNull(stringBuilder); 49_ = Throw.IfNull(redactor);
src\Shared\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);