TypeProvider.IsAssignable Method (Type, Type)

 

Indicates whether one type can be safely assigned to another type.

Namespace:   System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public static bool IsAssignable(
	Type toType,
	Type fromType
)

Parameters

toType
Type: System.Type

The target Type of the assignment.

fromType
Type: System.Type

The source Type of the assignment.

Return Value

Type: System.Boolean

true if the assignment can be safely made; otherwise false.

.NET Framework
Available since 3.0
Return to top
Show: