2011年12月26日

简单的 emit expression and reflected 性能比较

摘要: class Student{ public string Name { get; set; }}static double Test(int loop, Student stu, Func<Student, string> action){ var watch = Stopwatch.StartNew(); string s = null; for (var i = 0; i < loop; i++) s = action(stu); return watch.ElapsedTicks;}static Func<Student... 阅读全文

posted @ 2011-12-26 18:12 Terry@ 阅读(546) 评论(1) 推荐(1) 编辑

简单的枚举位运算.

摘要: 1 定义枚举2 书写代码 阅读全文

posted @ 2011-12-26 14:52 Terry@ 阅读(210) 评论(0) 推荐(0) 编辑

导航