Table of Contents

ToAsciiEncodedString Method

Definition

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

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

Encodes all the characters in the enclosed string of the specified decorator to its ASCII encoded variant.

public static string ToAsciiEncodedString(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

A string variant of the enclosed string of the specified decorator that is ASCII encoded.

Exceptions

ArgumentNullException

decorator cannot be null.