@The_Assimilator said:
Oh, and that completely ignores the uselessness of defining a string value for an enum field when you can just call ToString() on the field.
If the code is being obfuscated, it actually makes sense to not use ToString on enum values or types anywhere. Especially if the obfuscation guy and the guy writing the code are two different people. I'm not saying its the best way, but it isn't senseless.
@The_Assimilator said:
Great, except there's the perfectly good Description attribute which already does the same thing, and has since .NET 1.1.
DescriptionAttribute is NOT a general purpose class you can just throw whatever random string you want into. I'd consider using the description attribute here to be more of a WTF honestly.