ByteArrayExtensionsToHexValuesString(Byte, String) Method
Converts the byte array to string of hexadecimal values.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static string ToHexValuesString(
this byte[] bytes,
string? separator = null
)
<ExtensionAttribute>
Public Shared Function ToHexValuesString (
bytes As Byte(),
Optional separator As String = Nothing
) As String
public:
[ExtensionAttribute]
static String^ ToHexValuesString(
array<unsigned char>^ bytes,
String^ separator = nullptr
)
[<ExtensionAttribute>]
static member ToHexValuesString :
bytes : byte[] *
?separator : string
(* Defaults:
let _separator = defaultArg separator null
*)
-> string
- bytes Byte
- The byte array to convert.
- separator String (Optional)
- The separator to use between the hex numbers. If or empty, the hex stream will be continuous. This parameter is optional.
Default value: .
StringThe string representation, in hex, of the contents of
bytes.In Visual Basic and C#, you can call this method as an instance method on any object of type
Byte. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).