Hi All,
I'm trying to clone a class instance, which have rich collection of internal property values. Theses data are fetched from the database. I want to clone this instance in which the changes made in that instance will not affect the real one time created instance. Please refer the below code snippet:
- public class DB_Data
- {
- public DB_Data Data
- { get; internal set; }
- public DB_Data()
- { }
- public void DB_Schema()
- {
- // code to get data from DataBase;
- }
- }
Kindly share your ideas. Thanks in advance.
Regards,
Amresh S.


Manas MohapatraRank #182 · 13.2K reputationPosted Oct 27, 2016, 5:19 AM EDT
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted Oct 27, 2016, 5:43 AM EDT