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

                functions.Add(name, handler);
            }
        }
예제 #3
0
        public void RegisterFunction(SExpFunctionHandler handler, params string [] names)
        {
            foreach(string name in names) {
                if(functions.ContainsKey(name)) {
                    functions.Remove(name);
                }

                functions.Add(name, handler);
            }
        }