2011年4月26日
摘要: .net framework为我们提供了一个Lazy<T> 类型,给我们开发带来很多便利,看如下的代码,有这样一个Class做示例: 1: public class Person 2: { 3: public int Age { get; set; } 4: 5: public Person() 6: { 7: Age = 1; 8: Console.WriteLine("Created"); ... 阅读全文
posted @ 2011-04-26 14:26 PetterLiu 阅读(3669) 评论(2) 推荐(2) 编辑