NameValueCollectionExtension ToDictionary Method | Glimpse API Documentation |
Converts a NameValueCollection to a IDictionary<string, string>.
Namespace: Glimpse.Core.ExtensionsAssembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public static IDictionary<string, string> ToDictionary( this NameValueCollection input )
public static IDictionary<string, string> ToDictionary( this NameValueCollection input )
Parameters
- input
- Type: System.Collections.Specialized NameValueCollection
The NameValueCollection to convert.
Return Value
A IDictionary<string, string> containing the same key/value pairs as input.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type NameValueCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also