Validation 2.6.55-rc.1

Validation

Method input validation and runtime checks that report errors or throw exceptions when failures are detected.

Check out our full documentation.

Basic input validation via the Requires class throws an ArgumentException.

Requires.NotNull(arg1);
Requires.NotNullOrEmpty(arg2);

State validation via the Verify class throws an InvalidOperationException.

Verify.Operation(condition, "some error occurred.");

Internal integrity checks via the Assumes class throws an InternalErrorException.

Assumes.True(condition, "some error");

Warning signs that should not throw exceptions via the Report class.

Report.IfNot(condition, "some error");

Showing the top 20 packages that depend on Validation.

Packages Downloads
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, etc.
42

.NET Framework 3.5

  • No dependencies.

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
2.6.68 5 12/23/2024
2.6.65-rc.2 4 12/23/2024
2.6.55-rc.1 3 12/22/2024
2.6.13-beta 35 7/3/2022
2.6.7-beta 39 7/4/2022
2.5.51 39 7/4/2022
2.5.42 37 7/4/2022
2.5.5-beta 47 7/4/2022
2.4.22 43 7/4/2022
2.4.18 31 7/4/2022
2.4.17 52 7/4/2022
2.4.15 40 7/4/2022
2.4.15-g8377954d86 48 7/4/2022
2.4.13 36 7/4/2022
2.4.10 36 7/4/2022
2.4.9 44 7/4/2022
2.4.7 47 7/4/2022
2.3.7 36 7/4/2022
2.3.5 34 7/4/2022
2.2.8 31 7/4/2022
2.2.5 34 7/4/2022
2.2.4 33 7/4/2022
2.0.6.15003 34 7/4/2022
2.0.5.14286 32 7/4/2022
2.0.4.14103 38 7/4/2022
2.0.3.13323 37 7/4/2022
2.0.2.13022 30 7/4/2022
2.0.1.12362 32 7/4/2022
2.0.0.12319 42 7/4/2022
1.0.0.12259 32 7/4/2022