Skip to content

Commit

Permalink
Use Convert.ToHexString.
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Jan 8, 2025
1 parent 9bc4e30 commit ff3ddbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FirebirdSql.Data.FirebirdClient/Common/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ public static IntPtr ReadIntPtr(this BinaryReader self)

public static string ToHexString(this byte[] b)
{
#if NET5_0_OR_GREATER
return Convert.ToHexString(b);
#else
return BitConverter.ToString(b).Replace("-", string.Empty);
#endif
}

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

0 comments on commit ff3ddbd

Please sign in to comment.