Enhanced C#
Language of your choice: library documentation
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)