Can I get the enum key from an assigned value when using enum strings?

后端 未结 0 1692
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 07:44

Can I get the enum key from an assigned value when using enum strings - I need to get which key is used, not the string value.

Example:

enum Widgets {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题