public static List <TimedSection> GetTimedSectionList() { List <TimedSection> tempList = new List <TimedSection>( mSumSections.Count); foreach (KeyValuePair <string, double> kvp in mSumSections) { TimedSection timedSection = new TimedSection() { Name = kvp.Key, Time = kvp.Value }; tempList.Add(timedSection); } return(tempList); }
public static List<TimedSection> GetTimedSectionList() { List<TimedSection> tempList = new List<TimedSection>( mSumSections.Count); foreach (KeyValuePair<string, double> kvp in mSumSections) { TimedSection timedSection = new TimedSection() { Name = kvp.Key, Time = kvp.Value }; tempList.Add(timedSection); } return tempList; }