GuardArgumentIsOfTypeT Method (Object, String) |
Throws an exception if argumentValue is not of type T.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static void ArgumentIsOfType<T>(
Object argumentValue,
string argumentName
)
Public Shared Sub ArgumentIsOfType(Of T) (
argumentValue As Object,
argumentName As String
)
public:
generic<typename T>
static void ArgumentIsOfType(
Object^ argumentValue,
String^ argumentName
)
static member ArgumentIsOfType :
argumentValue : Object *
argumentName : string -> unit
Parameters
- argumentValue
- Type: SystemObject
The argument value to test. - argumentName
- Type: SystemString
Name of the argument.
Type Parameters
- T
- The type that is expected.
Exceptions
See Also