18 references to Throw
Microsoft.Extensions.Compliance.Abstractions (18)
Classification\DataClassification.cs (2)
41
TaxonomyName =
Throw
.IfNullOrWhitespace(taxonomyName);
42
Value =
Throw
.IfNullOrWhitespace(value);
Classification\DataClassificationSet.cs (3)
36
_ =
Throw
.IfNull(classifications);
47
_ =
Throw
.IfNull(classifications);
78
_ =
Throw
.IfNull(other);
Redaction\NullRedactor.cs (1)
28
Throw
.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);