diff --git a/src/Dahomey.Cbor/Dahomey.Cbor.csproj b/src/Dahomey.Cbor/Dahomey.Cbor.csproj index d8d81e9..cf3fd68 100644 --- a/src/Dahomey.Cbor/Dahomey.Cbor.csproj +++ b/src/Dahomey.Cbor/Dahomey.Cbor.csproj @@ -1,7 +1,8 @@  - netstandard2.0;net6.0;net7.0;net8.0 + net9.0 + true 12.0 enable cf. https://github.com/dahomey-technologies/Dahomey.Cbor/releases/tag/$(Version) @@ -25,7 +26,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -33,7 +34,7 @@ - + diff --git a/src/Dahomey.Cbor/Serialization/CborWriter.cs b/src/Dahomey.Cbor/Serialization/CborWriter.cs index c6d505e..0cd0893 100644 --- a/src/Dahomey.Cbor/Serialization/CborWriter.cs +++ b/src/Dahomey.Cbor/Serialization/CborWriter.cs @@ -201,7 +201,7 @@ public void WriteString(string? value) [MethodImpl(MethodImplOptions.AggressiveInlining)] public void WriteString(ReadOnlySpan value) { - if (value == null) + if (value.IsEmpty) { WriteNull(); return;