Table of Contents

UrlEncode Method

Definition

Namespace
Cuemon.Net
Assemblies
Cuemon.Net.dll
Source
src/Cuemon.Net/Extensions/StringDecoratorExtensions.cs

UrlEncode(IDecorator<string>, Action<EncodingOptions>)

Encodes a URL string from the enclosed string of the specified decorator.

public static string UrlEncode(this IDecorator<string> decorator, Action<EncodingOptions> setup = null)

Parameters

decorator IDecorator<string>

The IDecorator<T> to extend.

setup Action<EncodingOptions>

The EncodingOptions which may be configured.

Returns

string

An URL encoded string.

Exceptions

ArgumentNullException

decorator cannot be null.