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); }
public CustomFunction(string name, FunctionDelegate3 function) { _name = name; _calculate3 = function; _argumentCount = 3; }