I\'m looking for a key/value pair object that I can include in a web service.
I tried using .NET\'s System.Collections.Generic.KeyValuePair<> class, but it doe
You will find the reason why KeyValuePairs cannot be serialised at this MSDN Blog Post
The Struct answer is the simplest solution, however not the only solution. A "better" solution is to write a Custom KeyValurPair class which is Serializable.