public void AddSubType(TypeInfo subType) { if (subType != null) { if (SubTypes == null) { SubTypes = new NodeIdDictionary<TypeInfo>(); } SubTypes[subType.NodeId] = subType; } }