Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            SingleClass first = SingleClass.getInstance();

            Console.WriteLine("\n First Instance: {0}", first.deger);

            SingleClass second = SingleClass.getInstance();

            Console.WriteLine("\n Second Instance: {0}", second.deger);
        }
Example #2
0
 static SingleClass()
 {
     _single = new SingleClass();
     Console.WriteLine("Create");
 }