简单的 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) 编辑