Table of Contents

Class CharExtensions

Namespace
Cuemon.Extensions
Assembly
Cuemon.Extensions.Core.dll

Extension methods for the System.Char struct.

public static class CharExtensions
Inheritance
Object
CharExtensions

Methods

FromChars(IEnumerable<Char>)

Converts the specified values to its equivalent System.String representation.

public static string FromChars(this IEnumerable<char> values)

Parameters

values IEnumerable<Char>

The IEnumerable{char} to extend.

Returns

String

A System.String equivalent to the specified values.

Exceptions

System.ArgumentNullException

values cannot be null.

ToEnumerable(IEnumerable<Char>)

Converts the specified values to its equivalent IEnumerable{string}.

public static IEnumerable<string> ToEnumerable(this IEnumerable<char> values)

Parameters

values IEnumerable<Char>

The IEnumerable{char} to extend.

Returns

IEnumerable<String>

An IEnumerable{string} equivalent to the specified values.

Exceptions

System.ArgumentNullException

values cannot be null.