2011年10月31日

System.Threading.Tasks

摘要: 待完善 阅读全文

posted @ 2011-10-31 20:52 Terry@ 阅读(167) 评论(0) 推荐(0) 编辑

成员变量,属性,自动属性 的性能差异.

摘要: 首先,建立一个类.public class KVTable{ public string Name;}书写代码var kvt = new KVTable ();My.Test.BeginTestTick();for (int i = 0; i < 1000000; i++){ kvt.Name = i.ToString();}My.Test.EndTestTickAndShow();执行用时 600 毫秒改为public class KVTable{ public string Name{get;set;}}执行用时 2511 毫秒改为public class KVTable... 阅读全文

posted @ 2011-10-31 00:14 Terry@ 阅读(436) 评论(1) 推荐(0) 编辑

导航