Make string extensions use nullable string

This commit is contained in:
Mira 2024-02-14 00:59:19 +01:00
parent 4145050fbc
commit 0c7f0fc48f
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36

View file

@ -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>