Functions.CSend 方法 |
命名空间: XSharp.RT
FUNCTION CSend( oObject AS Object, symMethod AS STRING, MethodArgList PARAMS USUAL[] ) AS USUAL
public static __Usual CSend( Object oObject, string symMethod, params __Usual[] MethodArgList )
1CLASS Automobile 2 EXPORT model 3CONSTRUCTOR(tmodel) CLASS Automobile 4 model := tmodel 5METHOD Horn(nSound, cSay) CLASS Automobile 6 Tone(nSound, 2) 7 QOut(cSay) 8FUNCTION Start() 9 LOCAL x AS OBJECT 10 x := Automobile{"Car"} 11 // x:Horn(100, "Hello!") 12 Send(x, #Horn, 100, "Hello!")