示例#1
0
        public static Singleton_Synchronized GetInstance()
        {
            //延迟实例化
            if (uniqueInstance == null)
            {
                uniqueInstance = new Singleton_Synchronized();
            }

            return uniqueInstance;
        }
示例#2
0
        public static Singleton_Synchronized GetInstance()
        {
            //延迟实例化
            if (uniqueInstance == null)
            {
                uniqueInstance = new Singleton_Synchronized();
            }

            return(uniqueInstance);
        }