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(); }
public NestoTamo() { st = SingletonTest.Instanciraj(); }