CreateHexadecimal Method
Definition
CreateHexadecimal(byte[])
Creates a hexadecimal string representation of the specified byte array.
public static string CreateHexadecimal(byte[] value)
Parameters
valuebyte[]The byte array to convert.
Returns
- string
A hexadecimal string representation of
value.
Exceptions
- ArgumentNullException
valueis null.
CreateHexadecimal(string, Action<EncodingOptions>)
Creates a hexadecimal string representation of the specified string.
public static string CreateHexadecimal(string value, Action<EncodingOptions> setup = null)
Parameters
valuestringThe string to convert.
setupAction<EncodingOptions>The delegate that configures the encoding behavior.
Returns
- string
A hexadecimal string representation of
value.
Exceptions
- ArgumentNullException
valueis null.- InvalidEnumArgumentException
setupconfigures an invalid value for Preamble.