private P21InheritanceNode GetInheritanceNode(string type) { P21InheritanceNode childNode; var uppered = type.ToUpper(); if (inheritanceNodes.ContainsKey(uppered)) { childNode = inheritanceNodes[uppered]; } else { var isAbstract = typeIsAbstract[uppered]; childNode = new P21InheritanceNode(uppered, isAbstract); inheritanceNodes.Add(uppered, childNode); } return(childNode); }
public void AddSubtype(P21InheritanceNode child) { children.Add(child); child.Parent = this; }