NullOrWhiteSpaceAsNull should be nullable

(cherry picked from commit 5ffc2b1ccb)
This commit is contained in:
Anders Bjerner
2022-11-08 09:22:23 +01:00
committed by Sebastiaan Janssen
parent 8bee709720
commit f4012115a3

View File

@@ -1240,7 +1240,7 @@ public static class StringExtensions
/// <summary>
/// Turns an null-or-whitespace string into a null string.
/// </summary>
public static string? NullOrWhiteSpaceAsNull(this string text)
public static string? NullOrWhiteSpaceAsNull(this string? text)
=> string.IsNullOrWhiteSpace(text) ? null : text;
/// <summary>