What is the best way to make a deep copy of a Dictionary? I can use one of Jon Skeet's answers (What is the best way to clone/deep copy a .NET generic Dictionary<string, T>?), but those answers are 8 years old. So nearly a decade later, is that still the best approach, or is there a better way?
Asked
Active
Viewed 152 times
0
-
4dictionary implementation is still same, so that is the right way still – Ehsan Sajjad Mar 26 '16 at 20:04
-
I think it is obvious that the old method is a good one. – mostafa8026 Mar 26 '16 at 20:48
-
Yes, the approach is still valid. Nothing has changed about dictionaries, no new method that I've seen improves on Jon's answer. – Corey Mar 26 '16 at 20:52