static public Method GetMethod(string name) { Method m = Items.Find(x => x.Name == name); if (m == null) { m = new Method(); m.Name = name; Items.Add(m); } return m; }
static public void AddMethod(Method method) { Items.Add(method); }