3
가능한 중복 :
C# - Is there a better alternative than this to ‘switch on type’?C# - '스위치 유형'에 가장 적합한 대안은 무엇입니까?
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) 또는 더 나은 방법이있다. ...?
코드 읽기의 속도와 용이성을 모두 반영하십시오.
도 볼 http://stackoverflow.com/questions/156467/switch-pattern-matching-idea http://stackoverflow.com/questions/7252186/switch-case-on-type-c-sharp http://stackoverflow.com/questions/7542793/how-to-use-switch-case-on-a-type http://stackoverflow.com/questions/4478464/c-sharp-switch-on-type http://stackoverflow.com/questions/298976/c-sharp-is-there-a-better-alternative-than-this-to-switch-on-type – Mikhail
및 http://stackoverflow.com/questions/ 94305/what-is-quick-switch-on-string-or-elseif-on-type http://stackoverflow.com/questions/6304815/why-is-this-switch-on-type-case-considered- 혼란스러운 http://stackoverflow.com/ques/5947343/가능한 개체 유형 전환 방법 http://stackoverflow.com/questions/10115028/best-way-to-switch-behavior-based-on-type – Mikhail