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 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; } }