Extension Methods from Adam
-
If
Executes a function if a given predicate is true
-
ThrowIf
Throw's a given exception is a given predicate is True
-
ThrowIfDefault
Throws a given Exception if the given object is equal to the default value for the type
-
IsDefaultForType
Returns true or false depending on if the given object is equal to the default(T) value of the type.
-
ThrowIfAny
Throws a given exception is any value in a set passes a given predicate