internal static class Invariant : object
Several check methods to verify method parameters
GetName
Returns the given name
public static String GetName<T>(T item)
Parameters
item
TProperty Name
Type Parameters
T
Type
Returns
Property Name
Greater(Int32 count, Int32 min)
count has to be greater than min
public static void Greater(Int32 count, Int32 min)
Parameters
count
Int32Count to check
min
Int32Reference value
NotEmpty(String item)
Checks if specified string element is null or emoty
public static void NotEmpty(String item)
Parameters
item
StringElement to check
Exceptions
ArgumentNullException
if itemis null or empty
NotNull
Checks for null
public static void NotNull<T>(T item)
Parameters
item
TObject to check
Type Parameters
T
Type
Exceptions
ArgumentNullException
if item is null