【发布时间】:2011-02-02 20:27:30
【问题描述】:
可能重复:
C# - Is there a better alternative than this to ‘switch on type’?
1.) http://channel9.msdn.com/forums/TechOff/411739-switch-objectGetType-/?CommentID=411995
2.) http://blogs.msdn.com/jaredpar/archive/2008/05/16/switching-on-types.aspx
3.) 还是有更好的方法....?
请反映阅读代码的速度和难易程度。
【问题讨论】:
标签: c# performance switch-statement