C#: How to use a Type Converter to localize enums

前端 未结 2 875
温柔的废话
温柔的废话 2021-01-05 07:19

I\'m trying to understand how to use Type Converters after reading this answer to one of my other questions. But I\'m not sure if I quite get it...

In my particular

2条回答
  •  悲哀的现实
    2021-01-05 07:41

    I believe this was already answered in How do I override ToString in C# enums?

    Also, you could combine this with an extension method for enums with a name like ToDisplayString.

提交回复
热议问题