如何将枚举转换为C#中的列表? [重复]

白昼怎懂夜的黑 提交于 2020-08-14 13:36:51

问题:

This question already has an answer here: 这个问题在这里已有答案:

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!