From 799e635577a7de68a2ee71e590c059a1245388ac Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 26 Aug 2023 18:50:37 +0100 Subject: [PATCH] style: mark WriteBits conditional --- X10D/src/IO/DecimalExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/X10D/src/IO/DecimalExtensions.cs b/X10D/src/IO/DecimalExtensions.cs index 5b826828c..1bcf88ab5 100644 --- a/X10D/src/IO/DecimalExtensions.cs +++ b/X10D/src/IO/DecimalExtensions.cs @@ -1,3 +1,4 @@ +using System.Diagnostics; using System.Diagnostics.Contracts; using System.Runtime.InteropServices; @@ -101,6 +102,7 @@ private static void GetBits(decimal value, Span destination) #endif } + [Conditional("NET5_0_OR_GREATER")] private static void WriteBits(Span destination, Span buffer) { var flags = MemoryMarshal.Read(buffer[..4]);