| ExtensionsReflectionAreReferenceAssignable Method |
Returns a value that indicates whether the specified type can be assigned to the current type.
Namespace:
Cauldron
Assembly:
Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.2
Syntax public static bool AreReferenceAssignable(
this Type type,
Type toBeAssigned
)
Parameters
- type
- Type: SystemType
The current type that will be assigned to - toBeAssigned
- Type: SystemType
The type to check.
Return Value
Type:
Booleantrue if the specified type can be assigned to this type; otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also