public List <EventsTopicInfo> GetTopics() { TestTool.Proxies.Event.TopicSetType topicSet = GetTopicSet(); if (topicSet == null || topicSet.Any == null || topicSet.Any.Length == 0) { return(null); } List <XmlElement> topics = new List <XmlElement>(); foreach (XmlElement element in topicSet.Any) { FindTopics(element, topics); } List <EventsTopicInfo> topicInfos = new List <EventsTopicInfo>(); foreach (XmlElement nextTopicElement in topics) { TopicInfo info = TopicInfo.ConstructTopicInfo(nextTopicElement); EventsTopicInfo nextTopicInfo = info.GetPlainInfo(); topicInfos.Add(nextTopicInfo); } return(topicInfos); }