Class CharDecoratorExtensions
Extension methods for the Char struct tailored to adhere the decorator pattern.
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class CharDecoratorExtensions
Methods
| Improve this Doc View SourceToEnumerable(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 |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
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 |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
See Also
IDecorator<T>
Decorator<T>