标签:singleton let stat log private sys code cti readonly
using System; public class Singleton<T> where T : class, new() { private static readonly T s_Instance; static Singleton() { s_Instance = Activator.CreateInstance<T>(); } public static T Instance { get { return s_Instance; } } }
标签:singleton let stat log private sys code cti readonly
原文地址:http://www.cnblogs.com/zjw007/p/6127362.html