예제 #1
0
        static void Main(string[] args)
        {
            Singleton s1 = Singleton.Get_Instance();
            Singleton s2 = Singleton.Get_Instance();


            if (s1.Equals(s2))
            {
                Console.WriteLine("The instances are the same!!");
            }
            else
            {
                Console.WriteLine("The instances are different");
            }

            Console.ReadKey();
        }