问题:
This question already has an answer here: 这个问题在这里已有答案:
- How do I enumerate an enum in C#? 如何在C#中枚举枚举? 26 answers 26个答案
Is there a way to convert an enum
to a list that contains all the enum's options? 有没有办法将enum
转换为包含所有枚举选项的列表?
解决方案:
参考一: https://stackoom.com/question/4tgP/如何将枚举转换为C-中的列表-重复参考二: https://oldbug.net/q/4tgP/How-do-I-convert-an-enum-to-a-list-in-C-duplicate
来源:oschina
链接:https://my.oschina.net/stackoom/blog/4422449