Class CharExtensions
- Namespace
- Cuemon.Extensions
- Assembly
- Cuemon.Extensions.Core.dll
Extension methods for the char struct.
public static class CharExtensions
- Inheritance
-
CharExtensions
Methods
FromChars(IEnumerable<char>)
Converts the specified values to its equivalent string representation.
public static string FromChars(this IEnumerable<char> values)
Parameters
valuesIEnumerable<char>The IEnumerable{char} to extend.
Returns
Exceptions
- ArgumentNullException
valuescannot be null.
ToEnumerable(IEnumerable<char>)
Converts the specified values to its equivalent IEnumerable{string}.
public static IEnumerable<string> ToEnumerable(this IEnumerable<char> values)
Parameters
valuesIEnumerable<char>The IEnumerable{char} to extend.
Returns
- IEnumerable<string>
An IEnumerable{string} equivalent to the specified
values.
Exceptions
- ArgumentNullException
valuescannot be null.