/// <summary> /// Find the class by the given name, if it does not exist /// create a new one and return reference /// </summary> /// <param name="className"></param> /// <returns></returns> internal Class FindClassByName(string className) { foreach (var clazz in Classes) { if (clazz.FullName == className) { return clazz; } } var newClazz = new Class(); newClazz.FullName = className; Classes.Add(newClazz); return newClazz; }
public static Method Create(Class clazz) { Summary parentSummary = clazz != null ? clazz.Summary : null; Method method = new Method(parentSummary); return method; }