public static void SetTree(string key, SetFunctionTree r) { if (treeDic.ContainsKey(key)) { treeDic[key] = r; } else { treeDic.Add(key, r); } }