Functions.Send 方法 |
命名空间: XSharp.RT
FUNCTION Send( oObject AS USUAL, symMethod AS USUAL, MethodArgList PARAMS USUAL[] ) AS USUAL
public static __Usual Send( __Usual oObject, __Usual 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!")