TypeProvider.IsAssignable(Type, Type) 方法

定义

指示是否可以将一种类型安全地分配给另一种类型。

public:
 static bool IsAssignable(Type ^ toType, Type ^ fromType);
public static bool IsAssignable(Type toType, Type fromType);
static member IsAssignable : Type * Type -> bool
Public Shared Function IsAssignable (toType As Type, fromType As Type) As Boolean

参数

toType
Type

工作分配的目标 Type

fromType
Type

分配的源 Type

返回

true 如果可以安全分配,则为否则 false

适用于