| ReflectionUtilsIsAssignableToGenericType Method |
Tests if a given type is assignable to a generic type.
Namespace:
Slash.Unity.DataBind.Core.Utils
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static bool IsAssignableToGenericType(
Type givenType,
Type genericType
)
Public Shared Function IsAssignableToGenericType (
givenType As Type,
genericType As Type
) As Boolean
public:
static bool IsAssignableToGenericType(
Type^ givenType,
Type^ genericType
)
static member IsAssignableToGenericType :
givenType : Type *
genericType : Type -> bool
Parameters
- givenType
- Type: SystemType
Type to check if assignable. - genericType
- Type: SystemType
Generic type to be assignable to.
Return Value
Type:
BooleanTrue if given type is assignable to generic type; otherwise, false.
See Also