diff --git a/Extensions/StringExtensions.cs b/Extensions/StringExtensions.cs index 342f561..13008c4 100644 --- a/Extensions/StringExtensions.cs +++ b/Extensions/StringExtensions.cs @@ -7,7 +7,7 @@ public static class StringExtensions /// /// /// Whether the string is null, empty or only contains whitespaces - public static bool IsNullOrWhiteSpace(this string str) + public static bool IsNullOrWhiteSpace(this string? str) => string.IsNullOrWhiteSpace(str); /// @@ -15,7 +15,7 @@ public static class StringExtensions /// /// /// Whether the string is null or empty - public static bool IsNullOrEmpty(this string str) + public static bool IsNullOrEmpty(this string? str) => string.IsNullOrEmpty(str); ///