Szerkesztés

Megosztás a következőn keresztül:


TypeProvider.IsAssignable(Type, Type) Method

Definition

Indicates whether one type can be safely assigned to another 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

Parameters

toType
Type

The target Type of the assignment.

fromType
Type

The source Type of the assignment.

Returns

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

Applies to