Convert

Utility class supporting string reversals, Base64 encoding/decoding, Hex, Binary, byte array transformations, and numeric parsing.

Methods

static string Reverse(string str)

Reverses the character sequence of the string.

static string ToBase64 / FromBase64(string str)

Encodes or decodes text using UTF-8 Base64 formats.

static string ToHex / FromHex / ToBinary / FromBinary(string str)

Converts text to and from Hexadecimal and 8-bit padded Binary formats.

static byte[] ToByteArray(string str) / static string FromByteArray(byte[] array)

Converts strings to UTF-8 byte arrays and vice versa.

static int ToInt / double ToDouble / long ToLong / float ToFloat(string str)

Parses strings into C# primitive numeric types.