Skip to content

Commit ff3ddbd

Browse files
committed
Use Convert.ToHexString.
1 parent 9bc4e30 commit ff3ddbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/FirebirdSql.Data.FirebirdClient/Common/Extensions.cs

+4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ public static IntPtr ReadIntPtr(this BinaryReader self)
4848

4949
public static string ToHexString(this byte[] b)
5050
{
51+
#if NET5_0_OR_GREATER
52+
return Convert.ToHexString(b);
53+
#else
5154
return BitConverter.ToString(b).Replace("-", string.Empty);
55+
#endif
5256
}
5357

5458
public static IEnumerable<IEnumerable<T>> Split<T>(this T[] array, int size)

0 commit comments

Comments
 (0)