Class CharConverterExtensions
This is an extensions implementation of the CharConverter class.
Inheritance
System.Object
CharConverterExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class CharConverterExtensions
Methods
| Improve this DocToCharArray(Stream, Action<EncodingOptions>)
Converts the given System.IO.Stream to a char array starting from position 0 (when supported).
Declaration
public static char[] ToCharArray(this Stream value, Action<EncodingOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | value | The System.IO.Stream value to be converted. |
System.Action<EncodingOptions> | setup | The EncodingOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.Char[] | A sequence of characters equivalent to the System.IO.Stream value. |
Remarks
EncodingOptions will be initialized with DefaultPreambleSequence and DefaultEncoding.
ToCharArray(String, Action<EncodingOptions>)
Converts the given System.String to an equivalent sequence of characters.
Declaration
public static char[] ToCharArray(this string value, Action<EncodingOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The System.String value to be converted. |
System.Action<EncodingOptions> | setup | The EncodingOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.Char[] | A sequence of characters equivalent to the System.String value. |
Remarks
EncodingOptions will be initialized with DefaultPreambleSequence and DefaultEncoding.