static void Main(string[] args) { ConcertPrototype1 p1 = new ConcertPrototype1("One"); ConcertPrototype1 c1 = (ConcertPrototype1)p1.Clone(); Console.WriteLine("Clone: {0}", c1.Id); ConcertPrototype2 p2 = new ConcertPrototype2("Two"); ConcertPrototype2 c2 = (ConcertPrototype2)p2.Clone(); Console.WriteLine("Clone: {0}", c2.Id); Console.ReadKey(); }
static void Main(string[] args) { ConcertPrototype1 p1 = new ConcertPrototype1("One"); ConcertPrototype1 c1 = (ConcertPrototype1)p1.Clone(); Console.WriteLine("Clone: {0}", c1.Id); ConcertPrototype2 p2 = new ConcertPrototype2("Two"); ConcertPrototype2 c2 = (ConcertPrototype2)p2.Clone(); Console.WriteLine("Clone: {0}", c2.Id); Console.ReadKey(); }