ALLINSIGHT

Home of the AlmostImplementedException

SerializableDictionary

Some days ago i got the problem, that I have to use a custom dictionary with as parameter for a service – therefore it must be serializable.
I found an interessting solution from “Paul Welter” at his blog (XML Serializable Generic Dictionary).
But that’s not all! I had to implement the Constructors for Dictionary and Serialization manually.
This is the final version for a generic Dictionary with the correct Constructors and attributes. I also added an overladed ToString method.
Hope you will enjoy 🙂

Share :

, , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *