List<string>
foreach
namespace Something { public class Theme { public class Custom { public class BackColor { public static string Name { get => "[Custom]BackColor"; } //... } public class EmphasisColor { public static string Name { get => "[Custom]EmphasisColor"; } //... } public class ForeColor { public static string Name { get => "[Custom]ForeColor"; } //... } } } public static List<string> GetNamesList() { List<string> list = new List<string>{}; foreach (string name in ???) // <---• { list.Add(name); } return list; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)