Example #1
0
        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);
        }
Example #2
0
 public void AddSubtype(P21InheritanceNode child)
 {
     children.Add(child);
     child.Parent = this;
 }