摘要: 本文介绍了C#下关于单例的4种实现方法。using System;using System.Collections.Generic;using System.Text;namespace SingletonDemo{ /// <summary> /// 1、普通单例 /// </summary> public class SingletonA { private static SingletonA _instance = null; private SingletonA() { } public static Single... 阅读全文
posted @ 2012-05-08 15:47 轮回 阅读(5785) 评论(0) 推荐(1) 编辑