Class EncodingExtensions
Extension methods for the System.Text.Encoding class.
Inheritance
System.Object
EncodingExtensions
Namespace: Cuemon.Text
Assembly: Cuemon.Core.dll
Syntax
public static class EncodingExtensions
Methods
| Improve this DocToEncodedString(Encoding, String, Action<FallbackEncodingOptions>)
Converts the specified value to its equivalent encoding representation.
Declaration
public static string ToEncodedString(this Encoding encoding, string value, Action<FallbackEncodingOptions> setup = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.Encoding | encoding | The encoding to use in the string that is returned. |
| System.String | value | The value to convert into the specified |
| System.Action<FallbackEncodingOptions> | setup | The FallbackEncodingOptions which need to be configured. |
Returns
| Type | Description |
|---|---|
| System.String | A string that is encoded according to the value of |
Remarks
The inspiration for this method was retrieved @ SO: https://stackoverflow.com/a/135473/175073.