Skip to content
afnpiresPublic

About

A library of extension methods to validate arguments.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Repository files navigation

Ensure

A library of extension methods to validate arguments.

Installation

Please follow the instruction presented here.

Usage

// String
string.Empty.EnsureNotNullOrEmpty(); // Throws ArgumentNullException

// Object

object aObject = null;
aObject.EnsureNotNull(); // Throws ArgumentNullException

aObject.Ensure(o => false /* A condition */, "A error message"); // Throws ArgumentException

For a detailed usage overview please see the tests.

Contribution

Feel free to open Pull Requests with features or open any issue with feature request or bug.

About

A library of extension methods to validate arguments.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages