Tutorial by Topics: clone

object ICloneable.Clone() { return Clone(); } // Private implementation of interface method which uses our custom public Clone() function. public Foo Clone() { return new Foo(this); } // Public clone method should utilize the copy constructor logic. The CLR requires a method definition o...

Page 1 of 1