C# Class NContext.Extensions.ByteExtensions

Defines extension methods for Byte.
Show file Open project: PowerDMS/NContext

Public Methods

Method Description
ToBase64 ( this bytes ) : String

Gets the base64 encoded string from the specified bytes.

ToHexadecimal ( this bytes ) : String

Gets the hexadecimal representation of the specified bytes.

ToUTF8 ( this bytes ) : String

Gets the UTF8 encoded string from the specified bytes.

Method Details

ToBase64() public static method

Gets the base64 encoded string from the specified bytes.
public static ToBase64 ( this bytes ) : String
bytes this The bytes.
return String

ToHexadecimal() public static method

Gets the hexadecimal representation of the specified bytes.
public static ToHexadecimal ( this bytes ) : String
bytes this The bytes to convert to hexadecimal.
return String

ToUTF8() public static method

Gets the UTF8 encoded string from the specified bytes.
public static ToUTF8 ( this bytes ) : String
bytes this The bytes.
return String