Class EncodingExtensions
Extension methods for the System.
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. |
encoding | The encoding to use in the string that is returned. |
System. |
value | The value to convert into the specified |
System. |
setup | The Fallback |
Returns
Type | Description |
---|---|
System. |
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.