Created
May 4, 2017 13:25
-
-
Save nkundu/f57223182ce9c19bfe01019573c9a78c to your computer and use it in GitHub Desktop.
Perform a shallow clone of a Dictionary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Dictionary<string, string> properties; | |
properties = c.Properties.ToDictionary(entry => entry.Key, entry => entry.Value); // shallow clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment