Beispiel #1
0
 public FunctionInfo(String name, funcInfoFunc func, params String[] args)
 {
     this._name = name;
     this._args = args;
     //this._exists = true;
     this.Func = func;
 }
Beispiel #2
0
 public void setFunction(FunctionInfo funcInfo, params string[] args)
 {
     this._name = funcInfo.Name;
     if (args != null)
     {
         this._args = args;
     }
     else if (funcInfo.Args != null && funcInfo.Args.Length > 0)
     {
         this._args = new string[funcInfo.Args.Length];
         funcInfo.Args.CopyTo(this._args, 0);
     }
     this.Func = funcInfo.Func;
 }
Beispiel #3
0
 public FunctionInfo(FunctionInfo templateFuncToClone, params String[] args)
 {
     this._name = templateFuncToClone.Name;
     //this._exists = templateFuncToClone.Exists;
     this.Func = templateFuncToClone.Func;
     if ((args == null || args.Length == 0) && templateFuncToClone.Args != null && templateFuncToClone.Args.Length > 0)
     {
         this._args = new string[templateFuncToClone.Args.Length];
         templateFuncToClone.Args.CopyTo(this._args, 0);
     }
     else if (args != null && args.Length > 0)
     {
         this._args = new string[args.Length];
         args.CopyTo(this._args, 0);
     }
 }
Beispiel #4
0
 public void setFunction(String name, funcInfoFunc func, params String[] args)
 {
     this._name = name;
     this._args = args;
     this.Func  = func;
 }