有没有人获得枚举解析器类的副本(“停止疯狂”)
代码来自 http://www.monstersgotmy.net /post/枚举和字符串-停止疯狂!.aspx 在许多有关 C# 中解析 Enum 的问题中都提到了。
有人有这个代码的副本吗?原来的网站似乎已经消失了。
Code from http://www.monstersgotmy.net/post/Enumerations-and-Strings-Stop-the-Madness!.aspx
is mentioned in a number of questions about parsing Enums in C#.
Has anyone got a copy of this code? The original site seems to have disappeared.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到我原来的这篇文章的链接现在是一个链接场,所以我从我们的代码库中取出了我所拥有的内容(随着时间的推移进行了修改)并将其放在 Gist 上。这与文章中的内容差不多,但经过了清理并添加了一些额外的扩展方法。
https://gist.github.com/1305566
I saw that my original link to this article is now a link farm, so I took what I had out of our codebase (modified over time) and put it on Gist. It's pretty much what was in the article, but cleaned up and with a few additional extension methods.
https://gist.github.com/1305566