Class UriParseExtensions
Uri extensions which help with parsing
Inheritance
System.Object
UriParseExtensions
Namespace:Dapplo.HttpExtensions
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class UriParseExtensions
Methods
| Improve this Doc View SourceQueryStringToDictionary(String)
Query-string To Dictionary creates a IDictionary
Declaration
public static IDictionary<string, string> QueryStringToDictionary(string queryString)
Parameters
Type | Name | Description |
---|---|---|
System.String | queryString | query string which is processed |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | IDictionary string, string |
QueryStringToKeyValuePairs(String)
Query-string To KeyValuePairs creates a List with KeyValuePair which have the name-values
Declaration
public static IEnumerable<KeyValuePair<string, string>> QueryStringToKeyValuePairs(string queryString)
Parameters
Type | Name | Description |
---|---|---|
System.String | queryString | query string which is processed |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>> | List KeyValuePair string, string |
QueryToDictionary(Uri)
QueryToDictionary creates a IDictionary with name-values
Declaration
public static IDictionary<string, string> QueryToDictionary(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | Uri of which the query is processed |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | IDictionary string, string |
QueryToKeyValuePairs(Uri)
QueryToKeyValuePairs creates a List with KeyValuePair which have the name-values
Declaration
public static IEnumerable<KeyValuePair<string, string>> QueryToKeyValuePairs(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | Uri of which the query is processed |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>> | List KeyValuePair string, string |
QueryToLookup(Uri)
QueryToLookup creates a ILookup with name-values
Declaration
public static ILookup<string, string> QueryToLookup(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | Uri of which the query is processed |
Returns
Type | Description |
---|---|
System.Linq.ILookup<System.String, System.String> | ILookup string, string |