fix: include WriteBits to !NET5_0_OR_GREATER

This commit is contained in:
Oliver Booth 2023-08-27 03:39:53 +01:00
parent 5d936b5385
commit 41ba8b5aad
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public static class DecimalExtensions
#endif #endif
} }
[Conditional("NET5_0_OR_GREATER")] #if !NET5_0_OR_GREATER
private static void WriteBits(Span<int> destination, Span<byte> buffer) private static void WriteBits(Span<int> destination, Span<byte> buffer)
{ {
var flags = MemoryMarshal.Read<int>(buffer[..4]); var flags = MemoryMarshal.Read<int>(buffer[..4]);
@ -117,4 +117,5 @@ public static class DecimalExtensions
destination[2] = hi; destination[2] = hi;
destination[3] = flags; destination[3] = flags;
} }
#endif
} }