What is deep or shallow copy concept in C#?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Aravind GovindarajRank #430 · 5.8K reputationPosted Nov 23, 2022, 2:57 PM EST
Deep Copy means, cloning the object with all level top to child level. however shallow copy means it will copy only top level items.
https://www.geeksforgeeks.org/shallow-copy-and-deep-copy-in-c-sharp/
Amit MohantyRank #112 · 20K reputationPosted Nov 23, 2022, 11:14 PM EST
https://www.c-sharpcorner.com/UploadFile/56fb14/shallow-copy-and-deep-copy-of-instance-using-C-Sharp/
https://dotnettutorials.net/lesson/shallow-copy-and-deep-copy/
http://net-informations.com/faq/net/shallow-deep-copy.htm
Vishal YelveRank #178 · 13.6K reputationPosted Nov 24, 2022, 1:17 AM EST
Hi Naresh,
Please check the below links
https://dotnettutorials.net/lesson/shallow-copy-and-deep-copy/
https://www.youtube.com/watch?v=IRIhavLN6ss
https://www.youtube.com/watch?v=C_nLA3hfw8E
https://www.youtube.com/watch?v=_TCW2fdSuok