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.2.dll
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