NullOrWhiteSpaceAsNull should be nullable
(cherry picked from commit 5ffc2b1ccb)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
8bee709720
commit
f4012115a3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user