Beispiel #1
0
 public void AddCustomFunction(string name, FunctionDelegate3 function)
 {
     string lowername = name.ToLower();
     if (m_Functions.ContainsKey(lowername))
         throw new FunctionAlreadyDefinedException("Function " + name + " already defined!");
     m_Functions[lowername] = new CustomFunction(lowername, function);
 }
Beispiel #2
0
 public CustomFunction(string name, FunctionDelegate3 function)
 {
     _name = name;
     _calculate3 = function;
     _argumentCount = 3;
 }