public class Sigleton<T> where T : class
{
public static Lazy<Sigleton<T>> _sigleton = new Lazy<Sigleton<T>>(()=>(Sigleton<T>)Activator.CreateInstance(typeof(T)));
protected Sigleton()
{
}
public static Sigleton<T> Instance
{
get
{
return _sigleton.Value;
}
}
}
因篇幅问题不能全部显示,请点此查看更多更全内容