Ejemplo n.º 1
0
        public static Singleton_Synchronized GetInstance()
        {
            //延迟实例化
            if (uniqueInstance == null)
            {
                uniqueInstance = new Singleton_Synchronized();
            }

            return uniqueInstance;
        }
Ejemplo n.º 2
0
        public static Singleton_Synchronized GetInstance()
        {
            //延迟实例化
            if (uniqueInstance == null)
            {
                uniqueInstance = new Singleton_Synchronized();
            }

            return(uniqueInstance);
        }