From fe885bd69454d54c26c14bc0031aa443b551ae07 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Sun, 20 Jun 2021 20:29:03 +0300 Subject: [PATCH 1/2] Implement ToStringOrEmpty struct based in the same manner as the common overload --- src/primitives/Primitives/Strings/Strings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/primitives/Primitives/Strings/Strings.cs b/src/primitives/Primitives/Strings/Strings.cs index d78b044..925a178 100644 --- a/src/primitives/Primitives/Strings/Strings.cs +++ b/src/primitives/Primitives/Strings/Strings.cs @@ -38,6 +38,6 @@ public static string ToStringOrEmpty(T? value) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static string ToStringOrEmpty(T? value) where T : struct => - value.ToString() ?? Empty; + value?.ToString() ?? Empty; } } From 1ddd3b89af8152546574de7d064785c7da30a334 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Sun, 20 Jun 2021 20:29:31 +0300 Subject: [PATCH 2/2] v1.1.3-rc.1.0.0 --- src/primitives/Primitives.Tests/Primitives.Tests.csproj | 6 +++--- src/primitives/Primitives/Primitives.csproj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/primitives/Primitives.Tests/Primitives.Tests.csproj b/src/primitives/Primitives.Tests/Primitives.Tests.csproj index 05e08a2..ded3dc2 100644 --- a/src/primitives/Primitives.Tests/Primitives.Tests.csproj +++ b/src/primitives/Primitives.Tests/Primitives.Tests.csproj @@ -13,9 +13,9 @@ - - - + + + diff --git a/src/primitives/Primitives/Primitives.csproj b/src/primitives/Primitives/Primitives.csproj index 32d076c..35c1551 100644 --- a/src/primitives/Primitives/Primitives.csproj +++ b/src/primitives/Primitives/Primitives.csproj @@ -11,7 +11,7 @@ Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy System PrimeFuncPack.Primitives - 1.1.3-preview.1.0.0 + 1.1.3-rc.1.0.0