コード例 #1
0
ファイル: InternalClosure.cs プロジェクト: hgabor/ManagedLua
 private InternalClosure(InternalClosure source)
     : base(source)
 {
     this.host = source.host;
     this.method = source.method;
 }
コード例 #2
0
ファイル: VirtualMachine.cs プロジェクト: hgabor/ManagedLua
 private void RegisterFunction(MethodInfo m, object host, string tableName, string funcName)
 {
     if (string.IsNullOrEmpty(tableName)) {
         globals[funcName] = new InternalClosure(m, host);
     }
     else {
         if (!globals.IsSet(tableName)) {
             globals[tableName] = new Table();
         }
         Table t = (Table)globals[tableName];
         t[funcName] = new InternalClosure(m, host);
     }
 }