Method | Description | |
---|---|---|
ArgumentNotNull ( object argumentValue, string argumentName ) : void |
Throws ArgumentNullException if the given argument is null.
|
|
ArgumentNotNullOrEmpty ( string argumentValue, string argumentName ) : void |
Throws an exception if the tested string argument is null or the empty string.
|
|
TypeIsAssignable ( |
Verifies that an argument type is assignable from the provided type (meaning interfaces are implemented, or classes exist in the base class hierarchy).
|
Method | Description | |
---|---|---|
GetTypeName ( object assignmentInstance ) : string | ||
InstanceIsAssignable ( |
public static ArgumentNotNull ( object argumentValue, string argumentName ) : void | ||
argumentValue | object | Argument value to test. |
argumentName | string | Name of the argument being tested. |
return | void |
public static ArgumentNotNullOrEmpty ( string argumentValue, string argumentName ) : void | ||
argumentValue | string | Argument value to check. |
argumentName | string | Name of argument being checked. |
return | void |
public static TypeIsAssignable ( |
||
assignmentTargetType | The argument type that will be assigned to. | |
assignmentValueType | The type of the value being assigned. | |
argumentName | string | Argument name. |
return | void |