Convert.TryToHexStringLower Method

Definition

Converts a span of 8-bit unsigned integers to its equivalent span representation that is encoded with lowercase hex characters.

C#
public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten);

Parameters

source
ReadOnlySpan<Byte>

A span of 8-bit unsigned integers.

destination
Span<Char>

The span representation in hex of the elements in source.

charsWritten
Int32

When this method returns, contains the number of chars that were written in destination.

Returns

true if the conversion was successful; otherwise, false.

Applies to

Product Versions
.NET 9