Click or drag to resize

GuardArgumentIsOfTypeT Method (Object, String, 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
Syntax
public static void ArgumentIsOfType<T>(
	Object argumentValue,
	string argumentName,
	string message
)

Parameters

argumentValue
Type: SystemObject
The argument value to test.
argumentName
Type: SystemString
Name of the argument.
message
Type: SystemString
The message that will be passed to the exception.

Type Parameters

T
The type that is expected.
Exceptions
ExceptionCondition
ArgumentExceptionValidation error.
See Also