I have a situation where in I cant use a Dictionary for name value collection of strings. My name value pair contains duplicate keys, because I need to support a legacy system. So please don't ask me to stop supporting duplicate keys. I tried to use NameValueCollection but this cannot be used with DataContractSerializer as it throws exception. Refer to the question for the error details.
Can anybody suggest alternative for this NameValueCollection type so that I can store key value pairs (only strings)?