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>
|
/// <summary>
|
||||||
/// Turns an null-or-whitespace string into a null string.
|
/// Turns an null-or-whitespace string into a null string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string? NullOrWhiteSpaceAsNull(this string text)
|
public static string? NullOrWhiteSpaceAsNull(this string? text)
|
||||||
=> string.IsNullOrWhiteSpace(text) ? null : text;
|
=> string.IsNullOrWhiteSpace(text) ? null : text;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user