Class MiscExtensions
Misc extensions
Inheritance
System.Object
MiscExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions
Assembly: Dapplo.HttpExtensions.dll
Syntax
public static class MiscExtensions
Methods
| Improve this Doc View SourceToQueryString<T>(IEnumerable<KeyValuePair<String, T>>)
Create a query string from a list of keyValuePairs
Declaration
public static string ToQueryString<T>(this IEnumerable<KeyValuePair<string, T>> keyValuePairs)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<System.String, T>> | keyValuePairs | list of keyValuePair with string,T |
Returns
Type | Description |
---|---|
System.String | name1=value1&name2=value2 etc... |
Type Parameters
Name | Description |
---|---|
T | type for the value, sometimes it's easier to let this method call ToString on your type. |