XPClassInfo.IsAssignableTo(XPClassInfo) Method
In This Article
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.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public bool IsAssignableTo(
XPClassInfo classInfo
)
#Parameters
Name | Type | Description |
---|---|---|
class |
XPClass |
An XPClass |
#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