Link to home
Start Free TrialLog in
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
Avatar of Qlemo
Qlemo
Flag of Germany image

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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial