消除平台模块warning

This commit is contained in:
2023-06-01 10:36:47 +08:00
parent ad0972c8f6
commit 51530a81cc
19 changed files with 108 additions and 90 deletions

View File

@@ -345,7 +345,7 @@ public static class StringExtensions
/// 指示指定的字符串是 null 或者 System.String.Empty 字符串.
/// </summary>
[DebuggerStepThrough]
public static bool IsNullOrEmpty(this string value)
public static bool IsNullOrEmpty(this string? value)
{
return string.IsNullOrEmpty(value);
}
@@ -363,7 +363,7 @@ public static class StringExtensions
/// 指示指定的字符串是 null、空或者仅由空白字符组成.
/// </summary>
[DebuggerStepThrough]
public static bool IsMissing(this string value)
public static bool IsMissing(this string? value)
{
return string.IsNullOrWhiteSpace(value);
}