Skip to content

HexConverter Class

Provides a static method for converting a byte array to its hexadecimal string representation.

C#
public static class HexConverter

Inheritance System.Object → HexConverter

Methods

HexConverter.ToHexString(this byte[]) Method

Converts a byte array to a hexadecimal string representation.

C#
public static string ToHexString(this byte[] bytes);

Parameters

bytes System.Byte[]

The byte array to convert.

Returns

System.String
A string representing the hexadecimal representation of the byte array.