Class NameValueCollectionConverter
This utility class is designed to make System.Collections.Specialized.NameValueCollection related conversions easier to work with.
Inheritance
Namespace: Cuemon.Collections.Specialized
Assembly: Cuemon.Collections.Specialized.dll
Syntax
public static class NameValueCollectionConverter
Methods
| Improve this DocFromDictionary(IDictionary<String, String[]>)
Creates a System.Collections.Specialized.NameValueCollection from the specified source
.
Declaration
public static NameValueCollection FromDictionary(IDictionary<string, string[]> source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String[]> | source | An System.Collections.Generic.IDictionary<TKey, TValue> to convert into an System.Collections.Specialized.NameValueCollection equivalent. |
Returns
Type | Description |
---|---|
System.Collections.Specialized.NameValueCollection | A System.Collections.Specialized.NameValueCollection that is equivalent to the specified |
ToDictionary(NameValueCollection)
Creates a System.Collections.Generic.IDictionary<TKey, TValue> from the specified source
.
Declaration
public static IDictionary<string, string[]> ToDictionary(NameValueCollection source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NameValueCollection | source | A System.Collections.Specialized.NameValueCollection to convert into an System.Collections.Generic.IDictionary<TKey, TValue> equivalent. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String[]> | A System.Collections.Generic.IDictionary<TKey, TValue> that is equivalent to the specified |