DataObject.DefineMethod 方法 | |
Defines a dynamic method.
命名空间:
XSharp.XPP
程序集:
XSharp.XPP (在 XSharp.XPP.dll 中) 版本:2.22 GA
语法 VIRTUAL METHOD DefineMethod(
cName AS STRING,
uAction AS USUAL
) AS Object
public virtual Object DefineMethod(
string cName,
__Usual uAction
)
查看代码参数
- cName
- 类型:String
The name of the method to be defined. - uAction
- 类型:__Usual
A Function name or codeblock that must be executed when the method is called.
返回值
类型:
ObjectThis method returns the DataObject (self).
备注 Dynamic methods in X# are called from the NoMethod method inside the DataObject class.
参见