Functions.IsClassOf 方法 |
命名空间: XSharp.RT
FUNCTION IsClassOf( symClassName AS STRING, symSuperClassName AS STRING ) AS LOGIC
public static bool IsClassOf( string symClassName, string symSuperClassName )
1CLASS A 2CLASS B INHERIT A 3CLASS C 4FUNCTION CheckClasses() 5? IsClassOf(#B, #A) // TRUE 6? IsClassOf(#B, #C) // FALSE 7? IsClassOf(#C, #A) // FALSE