C# - '开启类型'的最佳选择是什么?

时间:2010-03-31 09:32:27

标签: c# performance switch-statement

1 个答案:

答案 0 :(得分:1)

总之,建议我更喜欢第二种选择。一般来说,我更喜欢double dispatch而非Type s。

相关问题