/// <summary>

        /// 获取当前实例

        /// </summary>

        public static ClassTest Instance

        {

            get

            {

                if (_instance == null)

                {

                    lock (typeof(ClassTest ))

                    {

                        //创建实例

                        if (_instance == null){  _instance = new ClassTest ();}

                    }

                }

                return _instance;

            }

        }

相关文章:

  • 2021-12-01
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2022-03-04
猜你喜欢
  • 2021-09-02
  • 2022-01-11
  • 2022-01-08
  • 2021-06-15
  • 2021-09-30
  • 2021-10-02
相关资源
相似解决方案