Avatar of cerobledo
cerobledo
 asked on

Create a copy of a nested Dictionary

I need to make an independent copy of this data structure

Dictionary<int, Dictionary<string, string>>();

I create a copy of one of these dictionaries and when I clear it...the copy is cleared also

thanks

Chuck
C#.NET Programming

Avatar of undefined
Last Comment
cerobledo

8/22/2022 - Mon
Qlemo

Did you use MemberwiseClone() to get a copy?
ASKER CERTIFIED SOLUTION
cerobledo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy