Click or drag to resize

GuardIsOfType Method (Type, Object, String)

[This is preliminary documentation and is subject to change.]

Checks if item is of type t

Namespace:  CSInfrastructure.CodeContracts
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static void IsOfType(
	Type t,
	Object item,
	string paramName
)

Parameters

t
Type: SystemType
The target type
item
Type: SystemObject
The object being checked
paramName
Type: SystemString
The name of the parameter being checked
Exceptions
ExceptionCondition
ArgumentExceptionThrown when item is not of type t
See Also