Clone Object in C#

added by DotNetKicks
1/23/2018 1:09:26 AM

2 Kicks, 414 Views

A quick tip on how to clone any object in your app. Sometimes you need a copy of an object, but don't want to affect the original. You can either copy across all values to a new object manually, or even use AutoMapper. However, here I have a quick easy way to clone an object, ...