Exemplo n.º 1
0
        internal static List <string> GetSystemNames()
        {
            // Create a hashset so we can add things to it without worrying about duplicates
            // Added the string comparer to avoid case sensitive mismatching - Chandler
            HashSet <string> names = new HashSet <string>(StringComparer.OrdinalIgnoreCase);

            //  add all systems names since we cannot have dups
            SystemList.ForEach(s => names.Add(s.Name));

            // Return it as a sorted list, because it's easier to work with
            // Convert HashSet to List
            var output = names.ToList();

            // Order the list
            output.Sort();
            //return the list
            return(output);
        }