private static void Main(string[] args)
  {
      Mysingleton Object = Mysingleton.sravs;
      Object.check();
      singleton obj1 = singleton.sravs;
      obj1.worked();
      Console.ReadKey();
  }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Mysingleton obj1 = Mysingleton.Instance;

            obj1.Check();
            mysingleton obj2 = new mysingleton.Instance1;

            obj2.write();
            Console.ReadKey();
        }