The extension method ToNameValueCollection added to convert a dictionary to an instance of the NameValueCollection class.