Пример #1
0
        static void demoClone()
        {
            CloneDemo demo = new CloneDemo(2);

            Console.WriteLine("Object: " + demo.GetHashCode() + " value: " + demo.Value);
            CloneDemo clone = demo.Clone() as CloneDemo;

            Console.WriteLine("Object: " + clone.GetHashCode() + " value: " + clone.Value);
        }