62,046
社区成员
发帖
与我相关
我的任务
分享
Default() { }
private static Default _instance = null;
public static Default Instance()
{
if (_instance == null)
{
lock (typeof(Default))
{
if (_instance == null)
{
_instance = new Default();
}
}
}
return _instance;
}
//调用 :
Default def = Default.Instance();