Beispiel #1
0
        static void Main(string[] args)
        {
            Console.Title = "Singleton Tasarım Deseni";
            Ilac ilacim = Ilac.Instance;

            ilacim.Firma = "Health Group";
            Ilac ilacim2 = Ilac.Instance;

            Console.WriteLine(ilacim2.Firma);
            Console.ReadKey();
        }
Beispiel #2
0
 static Ilac()
 {
     instance = new Ilac();
 }