NullOrWhiteSpaceAsNull should be nullable
This commit is contained in:
committed by
Michael Latouche
parent
60765b976c
commit
5ffc2b1ccb
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user