.net memberwiseclone shallow copy not working
Hi All I am using this.MemberwiseClone() to create shallowcopy but it is not working. Please look at the code below. public class Customer { public int Id; public string Name; public Customer CreateShallowCopy() { return (Customer)this.MemberwiseClone(); } } class Program {...