@@ -50,7 +50,7 @@ internal static ServiceName ToServiceName(this byte[] data)
5050
5151 internal static BigInteger ToBigInteger ( this ReadOnlySpan < byte > data )
5252 {
53- #if NETSTANDARD2_1 || NET
53+ #if NET
5454 return new BigInteger ( data , isBigEndian : true ) ;
5555#else
5656 var reversed = data . ToArray ( ) ;
@@ -61,7 +61,7 @@ internal static BigInteger ToBigInteger(this ReadOnlySpan<byte> data)
6161
6262 internal static BigInteger ToBigInteger ( this byte [ ] data )
6363 {
64- #if NETSTANDARD2_1 || NET
64+ #if NET
6565 return new BigInteger ( data , isBigEndian : true ) ;
6666#else
6767 var reversed = new byte [ data . Length ] ;
@@ -76,7 +76,7 @@ internal static BigInteger ToBigInteger(this byte[] data)
7676 /// </summary>
7777 public static BigInteger ToBigInteger2 ( this byte [ ] data )
7878 {
79- #if NETSTANDARD2_1 || NET
79+ #if NET
8080 return new BigInteger ( data , isBigEndian : true , isUnsigned : true ) ;
8181#else
8282 if ( ( data [ 0 ] & ( 1 << 7 ) ) != 0 )
@@ -91,7 +91,7 @@ public static BigInteger ToBigInteger2(this byte[] data)
9191#endif
9292 }
9393
94- #if NETFRAMEWORK || NETSTANDARD2_0
94+ #if ! NET
9595 public static byte [ ] ToByteArray ( this BigInteger bigInt , bool isUnsigned = false , bool isBigEndian = false )
9696 {
9797 var data = bigInt . ToByteArray ( ) ;
@@ -361,7 +361,7 @@ internal static string Join(this IEnumerable<string> values, string separator)
361361 return string . Join ( separator , values ) ;
362362 }
363363
364- #if NETFRAMEWORK || NETSTANDARD2_0
364+ #if ! NET
365365 internal static bool TryAdd < TKey , TValue > ( this Dictionary < TKey , TValue > dictionary , TKey key , TValue value )
366366 {
367367 if ( ! dictionary . ContainsKey ( key ) )
0 commit comments