Table of Contents

Class CharDecoratorExtensions

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Extension methods for the Char struct hidden behind the IDecorator<T> interface.

public static class CharDecoratorExtensions
Inheritance
CharDecoratorExtensions

Methods

ToEnumerable(IDecorator<IEnumerable<Char>>)

Converts the enclosed IEnumerable{char} of the decorator to its equivalent IEnumerable{string}.

public static IEnumerable<string> ToEnumerable(this IDecorator<IEnumerable<char>> decorator)

Parameters

decorator IDecorator<IEnumerable<Char>>

The IDecorator<T> to extend.

Returns

IEnumerable<String>

An IEnumerable{string} equivalent to the enclosed IEnumerable{char} of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.

ToStringEquivalent(IDecorator<IEnumerable<Char>>)

Converts the enclosed IEnumerable{char} of the decorator to its equivalent String representation.

public static string ToStringEquivalent(this IDecorator<IEnumerable<char>> decorator)

Parameters

decorator IDecorator<IEnumerable<Char>>

The IDecorator<T> to extend.

Returns

String

A String equivalent to the enclosed IEnumerable{char} of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.

See Also