ToString Method
Definition
- Namespace
- Cuemon.Net.Collections.Specialized
- Assemblies
- Cuemon.Net.dll
ToString(IDecorator<NameValueCollection>, FieldValueSeparator, bool)
Returns a string that represents the enclosed NameValueCollection of the decorator.
public static string ToString(this IDecorator<NameValueCollection> decorator, FieldValueSeparator separator, bool urlEncode)
Parameters
decoratorIDecorator<NameValueCollection>The IDecorator<T> to extend.
separatorFieldValueSeparatorThe separator used to form the key-value pairs.
urlEncodeboolSpecify
trueto encode the values of the enclosed NameValueCollection of thedecoratorinto a URL-encoded string; otherwise,false. Default isfalse.
Returns
- string
A string that represents the enclosed NameValueCollection of the
decorator.
Exceptions
- ArgumentNullException
decoratorcannot be null.