InstanceIsAssignable Method

GWN Framework Contact Manager

Guard..::..InstanceIsAssignable Method

Verifies that an argument instance is assignable from the provided type (meaning interfaces are implemented, or classes exist in the base class hierarchy, or instance can be assigned through a runtime wrapper, as is the case for COM Objects).

Namespace:  Gwn.Common.Library.Utility
Assembly:  Gwn.Common.Library (in Gwn.Common.Library.dll)

Syntax


public static void InstanceIsAssignable(
	Type assignmentTargetType,
	Object assignmentInstance,
	string argumentName
)

Parameters

assignmentTargetType
Type: Type
The argument type that will be assigned to.
assignmentInstance
Type: Object
The instance that will be assigned.
argumentName
Type: String
Argument name.