I\'m working on an app in C# (Windows-Phone-7), and I\'m trying to do something simple that has me stumped.
I want to cycle through each Color in Colors, and write o
You can use Reflection to get all of the properties within the Colors type:
var colorProperties = Colors.GetType().GetProperties(BindingFlags.Static | BindingFlags.Public); var colors = colorProperties.Select(prop => (Color)prop.GetValue(null, null)); foreach(Color myColor in colors) { // ....