Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Static Public Member Functions | List of all members
Loyc.CheckParam Class Reference

Helper methods for checking argument values that throw exceptions when an argument value is not acceptable. More...


Source file:

Remarks

Helper methods for checking argument values that throw exceptions when an argument value is not acceptable.

Static Public Member Functions

static T IsNotNull< T > (string paramName, T arg)
 
static int IsNotNegative (string argName, int value)
 
static int IsInRange (string paramName, int value, int min, int max)
 
static void ThrowOutOfRange (string argName)
 
static void ThrowOutOfRange (string argName, int value, int min, int max)
 
static void ThrowArgumentNull (string argName)
 
static void Arg (string argName, bool condition, object argValue)
 
static void Arg (string argName, bool condition)