Skip to main content

NameValueCollectionWrapperExtensions

Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class NameValueCollectionWrapperExtensions

Methods

Clone(NameValueCollection)

View Source
Declaration
public static NameValueCollection Clone(this NameValueCollection nameValues)
Returns

System.Collections.Specialized.NameValueCollection

Parameters
TypeName
System.Collections.Specialized.NameValueCollectionnameValues

ToDictionary(NameValueCollection)

View Source
Declaration
public static Dictionary<string, string> ToDictionary(this NameValueCollection nameValues)
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters
TypeName
System.Collections.Specialized.NameValueCollectionnameValues

ToNameValueCollection(Dictionary<String, String>)

View Source
Declaration
public static NameValueCollection ToNameValueCollection(this Dictionary<string, string> map)
Returns

System.Collections.Specialized.NameValueCollection

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>map

ToFormUrlEncoded(NameValueCollection)

View Source
Declaration
public static string ToFormUrlEncoded(this NameValueCollection queryParams)
Returns

System.String

Parameters
TypeName
System.Collections.Specialized.NameValueCollectionqueryParams

AddQueryParam(IHasQueryParams, String, String)

View Source
Declaration
public static void AddQueryParam(this IHasQueryParams queryParams, string key, string value)
Parameters
TypeName
ServiceStack.IHasQueryParamsqueryParams
System.Stringkey
System.Stringvalue