NullOrWhiteSpaceAsNull should be nullable

This commit is contained in:
Anders Bjerner
2022-11-08 09:22:23 +01:00
committed by Michael Latouche
parent 60765b976c
commit 5ffc2b1ccb

View File

@@ -1239,7 +1239,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>