Class CharDecoratorExtensions
- Namespace
- Cuemon
- Assembly
- Cuemon.Core.dll
Extension methods for the System.Char struct hidden behind the IDecorator<T> interface.
public static class CharDecoratorExtensions
- Inheritance
-
ObjectCharDecoratorExtensions
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
- System.ArgumentNullException
decorator
cannot be null.
ToStringEquivalent(IDecorator<IEnumerable<Char>>)
Converts the enclosed IEnumerable{char} of the decorator
to its equivalent System.String representation.
public static string ToStringEquivalent(this IDecorator<IEnumerable<char>> decorator)
Parameters
decorator
IDecorator<IEnumerable<Char>>The IDecorator<T> to extend.
Returns
- String
A System.String equivalent to the enclosed IEnumerable{char} of the
decorator
.
Exceptions
- System.ArgumentNullException
decorator
cannot be null.
See Also
IDecorator<T>
Decorator<T>