using System;
/* ***********************************************
* subject 单例对象基类
* author 张原川
* date 2019/6/3 9:49:03
* ***********************************************/
namespace BPASmartClient.Helper
{
///
/// 单例对象基类
///
///
public class Singleton where T : new()
{
private static object _async = new object();
private static T _instance;
static readonly Lazy instance = new();
///
/// 获取实例
///
///
public static T GetInstance()
{
return instance.Value;
}
}
}