MParamCount Function |
Namespace: XSharp.RT
FUNCTION MParamCount( symClass AS STRING, symMethod AS STRING ) AS DWORD
public static uint MParamCount( string symClass, string symMethod )
1CLASS Rectangle 2METHOD Area(x, y) CLASS Rectangle 3RETURN x*y 4CLASS Geometry 5METHOD IdentifyObject(symObject, symMethod); 6 CLASS Geometry 7RETURN MParamCount(symObject, symMethod) 8Function Start() 9 LOCAL oShapes AS OBJECT 10 ? MParamCount(#Rectangle, #Area) // 2 11 oShapes := Geometry{} 12 ? "It is a "+NTrim(oShapes:IdentifyObject; 13 (#Rectangle, #Area))+ " dimensional object" 14 // It is a 2 dimensional object 15 RETURN TRUE