@@ -50,7 +50,7 @@ internal static ServiceName ToServiceName(this byte[] data)
50
50
51
51
internal static BigInteger ToBigInteger ( this ReadOnlySpan < byte > data )
52
52
{
53
- #if NETSTANDARD2_1 || NET
53
+ #if NET
54
54
return new BigInteger ( data , isBigEndian : true ) ;
55
55
#else
56
56
var reversed = data . ToArray ( ) ;
@@ -61,7 +61,7 @@ internal static BigInteger ToBigInteger(this ReadOnlySpan<byte> data)
61
61
62
62
internal static BigInteger ToBigInteger ( this byte [ ] data )
63
63
{
64
- #if NETSTANDARD2_1 || NET
64
+ #if NET
65
65
return new BigInteger ( data , isBigEndian : true ) ;
66
66
#else
67
67
var reversed = new byte [ data . Length ] ;
@@ -76,7 +76,7 @@ internal static BigInteger ToBigInteger(this byte[] data)
76
76
/// </summary>
77
77
public static BigInteger ToBigInteger2 ( this byte [ ] data )
78
78
{
79
- #if NETSTANDARD2_1 || NET
79
+ #if NET
80
80
return new BigInteger ( data , isBigEndian : true , isUnsigned : true ) ;
81
81
#else
82
82
if ( ( data [ 0 ] & ( 1 << 7 ) ) != 0 )
@@ -91,7 +91,7 @@ public static BigInteger ToBigInteger2(this byte[] data)
91
91
#endif
92
92
}
93
93
94
- #if NETFRAMEWORK || NETSTANDARD2_0
94
+ #if ! NET
95
95
public static byte [ ] ToByteArray ( this BigInteger bigInt , bool isUnsigned = false , bool isBigEndian = false )
96
96
{
97
97
var data = bigInt . ToByteArray ( ) ;
@@ -361,7 +361,7 @@ internal static string Join(this IEnumerable<string> values, string separator)
361
361
return string . Join ( separator , values ) ;
362
362
}
363
363
364
- #if NETFRAMEWORK || NETSTANDARD2_0
364
+ #if ! NET
365
365
internal static bool TryAdd < TKey , TValue > ( this Dictionary < TKey , TValue > dictionary , TKey key , TValue value )
366
366
{
367
367
if ( ! dictionary . ContainsKey ( key ) )
0 commit comments