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

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

            return(uniqueInstance);
        }