ByteArrayExtensions

Name Value
Assembly Catel.Core
Namespace Catel
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class ByteArrayExtensions

Extensions for byte arrays.

Methods

GetString(byte[] data, Encoding encoding)

Gets the string from the byte array using the specified encoding.

Parameters

Name Description
data The data.
encoding The encoding.

Returns

System.String.

GetUtf8String(byte[] data)

Gets the UTF8 string from the byte array.

Parameters

Name Description
data The data.

Returns

System.String.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion