Skip to main content
.NET 6.0+

ITypeInfo.IsAssignableFrom(ITypeInfo) Method

Indicates whether the type can be assigned from a specific type.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

bool IsAssignableFrom(
    ITypeInfo from
)

Parameters

Name Type Description
from ITypeInfo

An ITypeInfo object that represents the type to compare with the current type.

Returns

Type Description
Boolean

true, if a type represented by the from parameter and the current type are the same, or if the current type is in the inheritance hierarchy of the from type, or if the current type is an interface that the from type implements, or if the from type is a generic type parameter and the current type represents one of its constraints. false, if none of the above is true, or if null (Nothing in VB) was passed as the from parameter.

See Also