示例#1
0
        //得到该对象的方法
        public static Singleton_Classic GetInstance()
        {
            //延迟实例化
            if (uniqueInstance == null)
            {
                uniqueInstance = new Singleton_Classic();
            }

            return uniqueInstance;
        }
示例#2
0
        //得到该对象的方法
        public static Singleton_Classic GetInstance()
        {
            //延迟实例化
            if (uniqueInstance == null)
            {
                uniqueInstance = new Singleton_Classic();
            }

            return(uniqueInstance);
        }