private InternalClosure(InternalClosure source) : base(source) { this.host = source.host; this.method = source.method; }
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); } }