Class NameValueCollectionDecoratorExtensions
- Namespace
- Cuemon.Net.Collections.Specialized
- Assembly
- Cuemon.Net.dll
Extension methods for the NameValueCollection class hidden behind the IDecorator<T> interface.
public static class NameValueCollectionDecoratorExtensions
- Inheritance
-
NameValueCollectionDecoratorExtensions
Methods
ToString(IDecorator<NameValueCollection>, FieldValueSeparator, Boolean)
Returns a String that represents the enclosed NameValueCollection of the decorator
.
public static string ToString(this IDecorator<NameValueCollection> decorator, FieldValueSeparator separator, bool urlEncode)
Parameters
decorator
IDecorator<NameValueCollection>The IDecorator<T> to extend.
separator
FieldValueSeparatorThe separator used to form the key-value pairs.
urlEncode
BooleanSpecify
true
to encode the values of the enclosed NameValueCollection of thedecorator
into a URL-encoded string; otherwise,false
. Default isfalse
.
Returns
- String
A String that represents the enclosed NameValueCollection of the
decorator
.
Exceptions
- ArgumentNullException
decorator
cannot be null.
See Also
IDecorator<T>
Decorator<T>