drunkcod / Cone

8 stars 1 forks source link

WISH: DisplayAsAttribute respects standard formatting strings #17

Closed neochrome closed 12 years ago

neochrome commented 12 years ago

Currently the DisplayAsAttribute outputs enums as "NameOfEnumType.NameOfValue", regardless of any custom formatting paramters added to the output format string. It would be great if you could write something like this: "{0:F}" and the output would be "NameOfValue".

drunkcod commented 12 years ago

This is caused by what might be termed a anti-feature. I got no idea why I somewhere early on figured that "EnumName.Value" would be a better formatting than the standard "Value" one. I'll remove that brain-fart to the next release.