ToEncodedString Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
ToEncodedString(byte[], Action<EncodingOptions>)
Converts the specified bytes to a string using the provided preferred encoding.
public static string ToEncodedString(this byte[] bytes, Action<EncodingOptions> setup = null)
Parameters
bytesbyte[]The byte array to extend.
setupAction<EncodingOptions>The EncodingOptions which need to be configured.
Returns
Remarks
EncodingOptions will be initialized with DefaultPreambleSequence and DefaultEncoding.