public void Demo() { MyCloneableClass c = new MyCloneableClass(); MyCloneableClass c3 = c.Clone(); // C# 9.0 Candidate }
public void Demo() { MyCloneableClass c = new MyCloneableClass(); MyCloneableClass c2 = (MyCloneableClass)c.Clone(); // C# 8.0 }