Пример #1
0
        static void Main(string[] args)
        {
            SealedClass instance = new SealedClass();

            instance.x = 100;
            instance.y = 200;

            Console.WriteLine($"x = {instance.x}, y = {instance.y}");

            //Delay
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            SealedClass instance = new SealedClass();

            instance.x = 100;
            instance.x = 200;

            Console.WriteLine("x = {0}, y = {1}", instance.x, instance.y);

            //Delay
            Console.ReadKey();
        }