MemberwiseClone « Class « C# / CSharp Tutorial






7.50.MemberwiseClone
7.50.1.Create a clone using the Object.MemberwiseClone method because the Employee class contains only string and value types
7.50.2.Use MemberwiseClone method to clone object
7.50.3.Perform a memberwise clone of myEmployee using the Employee.Copy() method