在运行时创建枚举

在运行时创建枚举

本文介绍了在运行时创建枚举的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个字符串列表,我想从他们那里建立一个

枚举...有没有办法做到这一点?


提前致谢。


-

劳伦斯押韵 Oluyede

解决方案




我想我找到了方法......我正在玩System.Reflection.Emit


-

LawrenceRhymes Oluyede






I have a list of strings and i''d like to build up an
enum from them... is there a way to do that?

Thanks in advance.

--
Lawrence "Rhymes" Oluyede
http://loluyede.blogspot.com

解决方案



I think i''ve found the way... i''m playing with System.Reflection.Emit

--
Lawrence "Rhymes" Oluyede
http://loluyede.blogspot.com





这篇关于在运行时创建枚举的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 22:06