Throw
Guard clause utilities for parameter validation.| Method | Throws when |
|---|---|
Throw.IfNull(value) | Value is null |
Throw.IfNullOrEmpty(value) | String is null or empty |
Throw.IfNullOrWhiteSpace(value) | String is null, empty, or whitespace |
BuildTestCode
Test utility for compiling C# code in analyzer tests.Opt-in only. Requires
<InjectSharedBuildTestCode>true</InjectSharedBuildTestCode>.