Validation 2.6.68

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.
128

https://github.com/AArnott/Validation/releases/tag/v2.6.68

.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 125 12/23/2024
2.6.65-rc.2 124 12/23/2024
2.6.55-rc.1 110 12/22/2024
2.6.13-beta 128 07/18/2024
2.6.7-beta 147 07/18/2024
2.5.51 141 07/18/2024
2.5.42 130 07/18/2024
2.5.5-beta 106 07/18/2024
2.4.22 150 07/18/2024
2.4.18 123 07/18/2024
2.4.17 154 07/18/2024
2.4.15 147 07/18/2024
2.4.15-g8377954d86 111 07/18/2024
2.4.13 126 07/18/2024
2.4.10 136 07/18/2024
2.4.9 140 07/18/2024
2.4.7 130 07/18/2024
2.3.7 124 07/18/2024
2.3.5 118 07/18/2024
2.2.8 123 07/18/2024
2.2.5 124 07/18/2024
2.2.4 129 07/18/2024
2.0.6.15003 147 07/18/2024
2.0.5.14286 127 07/18/2024
2.0.4.14103 117 07/18/2024
2.0.3.13323 151 07/18/2024
2.0.2.13022 102 07/18/2024
2.0.1.12362 137 07/18/2024
2.0.0.12319 128 07/18/2024
1.0.0.12259 139 07/18/2024