You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

Validation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Validation

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

2.6.68
nugetNuGet
Version published
Maintainers
1
Created
Source

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");

Keywords

InputValidation

FAQs

Package last updated on 20 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts