I know that we should rather be using dictionaries as opposed to hashtables. I cannot find a way to clone the dictionary though. Even if casting it to ICollection which I do to get the SyncRoot, which I know is also frowned upon.
I am busy changing that now. Am I under the correct assumption that there is no way to implement any sort of cloning in a generic way which is why clone is not supported for dictionary?
Use the Constructor that takes a Dictionary. See this example
And just for fun.. You can use LINQ! Which is a bit more Generic approach.
Edit
This should work well with Reference Types, I tried the following:
And the modified code from above
Which outputs “Filip Ekberg”.