示例#1
0
 public Instance SetMethod(object name, NativeCodeCallback nativeCode)
 {
     return SetField(name, new Instance
                               {
                                   Prototype = new Instance { Code = new FunctionCode(nativeCode) }
                               });
 }
示例#2
0
 public FunctionCode(NativeCodeCallback native)
 {
     this.NativeCode = native;
 }