style: mark WriteBits conditional

This commit is contained in:
Oliver Booth 2023-08-26 18:50:37 +01:00
parent b843d155f6
commit 799e635577
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
@ -101,6 +102,7 @@ public static class DecimalExtensions
#endif
}
[Conditional("NET5_0_OR_GREATER")]
private static void WriteBits(Span<int> destination, Span<byte> buffer)
{
var flags = MemoryMarshal.Read<int>(buffer[..4]);