Is there a way to auto-populate a C# HashSet with the enumerations included in an enum?

后端 未结 0 514
无人及你
无人及你 2020-11-29 06:06

Let\'s say I have an enum MyColors defined like this:

enum MyColors { Red, Green, Blue }

And I want to populate a HashSet with t

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