private void PrepareTopicDictonary() { var parentTypeString = EnumClass.GetTopicParentTypeString(TopicParentType.DataStructures); if (!TopicParentMapping.ContainsKey(parentTypeString)) { TopicParentMapping.Add(parentTypeString, new List <string>()); } TopicParentMapping[parentTypeString].Add(EnumClass.GetTopicTypeString(TopicType.Linked_List)); TopicParentMapping[parentTypeString].Add(EnumClass.GetTopicTypeString(TopicType.Tree)); parentTypeString = EnumClass.GetTopicParentTypeString(TopicParentType.Others); if (!TopicParentMapping.ContainsKey(parentTypeString)) { TopicParentMapping.Add(parentTypeString, new List <string>()); } }
public TopicParent(TopicParentType parentType) { ParentName = parentType; ParentNameString = EnumClass.GetTopicParentTypeString(ParentName); }