摘要: 在程序中,有时候我们new了一个对象,但是并没有立即用到它,这样浪费了内存资源,可以用.net为我们提供的Lazy类。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 7 namespace Lazy 8 { 9 class Program10 {11 static void Main(string[] args)12 {13 ... 阅读全文
posted @ 2012-02-28 18:38 什么玩 阅读(227) 评论(0) 推荐(0) 编辑