Пример #1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Mysingleton obj = Mysingleton.Haritha;
            Mysingleton o   = Mysingleton.Vamsi;
            mytext      b   = mytext.ex;

            obj.Sleeping();
            o.DoSomething();
            b.Awake();
        }
        static void Main(string[] args)
        {
            MySingleton Obj = MySingleton.Instance;

            Obj.DoSomething();
            MySingleton Obj1 = MySingleton.World;

            Obj1.Text();
            mytext Obj2 = mytext.example;

            Obj2.Something();
            Console.ReadKey();
        }