Exemplo n.º 1
0
 public CustomFunction(string name, FunctionDelegate4 function)
 {
     _name = name;
     _calculate4 = function;
     _argumentCount = 4;
 }
Exemplo n.º 2
0
 public void AddCustomFunction(string name, FunctionDelegate4 function)
 {
     string lowername = name.ToLower();
     if (m_Functions.ContainsKey(lowername))
         throw new FunctionAlreadyDefinedException("Function " + name + " already defined!");
     m_Functions[lowername] = new CustomFunction(lowername, function);
 }