예제 #1
0
        static void Main(string[] args)
        {
            SingletonTest st  = SingletonTest.Instanciraj();
            SingletonTest st2 = SingletonTest.Instanciraj();
            NestoTamo     ne  = new NestoTamo();

            if (st == ne.st)
            {
                Console.WriteLine("Isto :) ");
            }
            Console.ReadKey();
        }
예제 #2
0
 public NestoTamo()
 {
     st = SingletonTest.Instanciraj();
 }