Skip to content

Commit 1dc62ae

Browse files
committed
TEST: test if Convert.ToHexString works without if-def
1 parent e56b06a commit 1dc62ae

File tree

1 file changed

+0
-7
lines changed
  • src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml

1 file changed

+0
-7
lines changed

src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/Utils.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -720,17 +720,10 @@ internal static X509Certificate2Collection BuildBagOfCerts(KeyInfoX509Data keyIn
720720
return collection;
721721
}
722722

723-
#if NET5_0_OR_GREATER
724723
internal static string EncodeHexString(byte[] sArray)
725724
{
726725
return Convert.ToHexString(sArray);
727726
}
728-
#else
729-
internal static string EncodeHexString(byte[] sArray)
730-
{
731-
return HexConverter.ToString(sArray);
732-
}
733-
#endif
734727

735728
internal static byte[] DecodeHexString(string s)
736729
{

0 commit comments

Comments
 (0)