3 ms·
That's an extension method, I was doing that. What's new is you can pass in any enumeration as you've used Enum as the base class. OK, I should have thought of
by throwaway_pdp09 6y ago
That's an extension method, I was doing that. What's new is you can pass in any enumeration as you've used Enum as the base class. OK, I should have thought of that. Not sure it would have helped but...
Now the [Display("Pretty Name")] is what I want! It apparently uses reflection, but for my app that's a very acceptable cost. I can see a few hundred LOC disappearing - thanks so much!