导航

2008年8月20日

摘要: 看到有些博客谈到for 循环的性能要好于 foreach。那么到底是不是呢?如果是的话,究竟两者之间有什么区别? Jitted的代码可能是最直接的方式来了解两者的差异。 例子代码: namespace Test { class Sample { private static int counter; public int Value = cou... 阅读全文

posted @ 2008-08-20 21:14 BitsBlue 阅读(2650) 评论(14) 推荐(0)