How can I convert a Dictionary<string, string> to a NameValueCollection?
The existing functionality of our project returns an old-fashioned NameValueCollection which I modify with LINQ. The result should be passed on as a NameValueCollection.
I want to solve this in a generic way. Any hints?
Why not use a simple
foreachloop?This could be embedded into an extension method:
You could then call it like this: