Show / Hide Table of Contents

Class CharDecoratorExtensions

Extension methods for the Char struct tailored to adhere the decorator pattern.

Inheritance
Object
CharDecoratorExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class CharDecoratorExtensions

Methods

| Improve this Doc View Source

ToEnumerable(IDecorator<IEnumerable<Char>>)

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

Declaration
public static IEnumerable<string> ToEnumerable(this IDecorator<IEnumerable<char>> decorator)
Parameters
Type Name Description
IDecorator<IEnumerable<Char>> decorator

The IDecorator<T> to extend.

Returns
Type Description
IEnumerable<String>

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

Exceptions
Type Condition
ArgumentNullException

decorator cannot be null.

| Improve this Doc View Source

ToStringEquivalent(IDecorator<IEnumerable<Char>>)

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

Declaration
public static string ToStringEquivalent(this IDecorator<IEnumerable<char>> decorator)
Parameters
Type Name Description
IDecorator<IEnumerable<Char>> decorator

The IDecorator<T> to extend.

Returns
Type Description
String

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

Exceptions
Type Condition
ArgumentNullException

decorator cannot be null.

See Also

IDecorator<T>
Decorator<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX