Make string extensions use nullable string
This commit is contained in:
parent
4145050fbc
commit
0c7f0fc48f
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ public static class StringExtensions
|
|||
/// </summary>
|
||||
/// <param name="str"></param>
|
||||
/// <returns>Whether the string is null, empty or only contains whitespaces</returns>
|
||||
public static bool IsNullOrWhiteSpace(this string str)
|
||||
public static bool IsNullOrWhiteSpace(this string? str)
|
||||
=> string.IsNullOrWhiteSpace(str);
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -15,7 +15,7 @@ public static class StringExtensions
|
|||
/// </summary>
|
||||
/// <param name="str"></param>
|
||||
/// <returns>Whether the string is null or empty</returns>
|
||||
public static bool IsNullOrEmpty(this string str)
|
||||
public static bool IsNullOrEmpty(this string? str)
|
||||
=> string.IsNullOrEmpty(str);
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue