IsClassOf Function | |
Determine if one class is a subclass of another class.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION IsClassOf(
symClassName AS STRING,
symSuperClassName AS STRING
) AS LOGIC
public static bool IsClassOf(
string symClassName,
string symSuperClassName
)
Request Example
View SourceParameters
- symClassName
- Type: String
The symbol of the class to examine. - symSuperClassName
- Type: String
The symbol of the superclass to examine.
Return Value
Type:
Logic
TRUE if
symClassName inherits from
symSuperClassName; otherwise, FALSE.
Remarks Examples
The following example shows the result of IsClassOf() when queried:
1CLASS A
2CLASS B INHERIT A
3CLASS C
4FUNCTION CheckClasses()
5? IsClassOf(#B, #A)
6? IsClassOf(#B, #C)
7? IsClassOf(#C, #A)
See Also Reference
IsClassOf(String, String)