Skip to content

Commit

Permalink
TEST: test if Convert.ToHexString works without if-def
Browse files Browse the repository at this point in the history
  • Loading branch information
determ1ne committed Nov 18, 2023
1 parent e56b06a commit 1dc62ae
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,17 +720,10 @@ internal static X509Certificate2Collection BuildBagOfCerts(KeyInfoX509Data keyIn
return collection;
}

#if NET5_0_OR_GREATER
internal static string EncodeHexString(byte[] sArray)
{
return Convert.ToHexString(sArray);
}
#else
internal static string EncodeHexString(byte[] sArray)
{
return HexConverter.ToString(sArray);
}
#endif

internal static byte[] DecodeHexString(string s)
{
Expand Down

0 comments on commit 1dc62ae

Please sign in to comment.