Reputation: 9599
Let's say I have a string object "AliceBlue", and I want to create the equivalent System.Windows.Media.Color object based on the Colors.AliceBlue static member. Does the WPF APIs support this directly, or would I have to use reflection to inspect the Colors class and pull out the correct static member?
Upvotes: 11
Views: 5815