XPClassInfo.IsAssignableTo(XPClassInfo) Method
Determines whether an instance of the current type can be assigned to an instance of the specified type.
Namespace: DevExpress.Xpo.Metadata
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Parameters
Name | Type | Description |
---|---|---|
classInfo | XPClassInfo | An XPClassInfo object which describes the type to compare with the current type. |
Returns
Type | Description |
---|---|
Boolean | true if an instance of the current type can be assigned to an instance of the specified type; otherwise, false. |
Remarks
The IsAssignableTo property returns true in the cases listed below:
- the classInfo parameter and the current XPClassInfo object describe the same class;
- if the class described by the current XPClassInfo object is in the inheritance hierarchy of the class described by the classInfo.
See Also