摘要: 来自msdn的实现:using System;public sealed class Singleton{ private static volatile Singleton instance; private static object syncRoot = new Object(); private Singleton() {} public static Singleton Instance { get { if (instance == null) { lock (syncRoot) { if (instance == null) instance = new Singl... 阅读全文
posted @ 2011-12-09 10:49 xiaoshiyilang 阅读(157) 评论(0) 推荐(0) 编辑