Example #1
0
        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>());
            }
        }
Example #2
0
 public TopicParent(TopicParentType parentType)
 {
     ParentName       = parentType;
     ParentNameString = EnumClass.GetTopicParentTypeString(ParentName);
 }