I need a collection of keys and values (like a dictionary) but it needs to be serializable using the Soapformatter.
Why the soapformatter?
I don’t know the type that has to be serialized, I only know the interface that the type implements.
Does anyone have a clue how to crack this nut?
Apparently all it takes is inheriting from Hashtable and adding the following constructors:
Took me half a day to figure this out…
you can then serialize this class like this:
And deserialize like this:
Hope this can help someone else out there some day 🙂