public static void AddSExprFunction(string name, SExpFunctionHandler handler) { if (!sexpr_functions.ContainsKey(name)) { sexpr_functions.Add(name, handler); } }
public void RegisterFunction(SExpFunctionHandler handler, params string [] names) { foreach (string name in names) { if (functions.ContainsKey(name)) { functions.Remove(name); } functions.Add(name, handler); } }
public void RegisterFunction(SExpFunctionHandler handler, params string [] names) { foreach(string name in names) { if(functions.ContainsKey(name)) { functions.Remove(name); } functions.Add(name, handler); } }