提交 769f58aa 编写于 作者: S szjay

no commit message

上级 e0e09ce7
...@@ -106,17 +106,22 @@ namespace Infrastructure.Utilities ...@@ -106,17 +106,22 @@ namespace Infrastructure.Utilities
public static bool IsNullOrEmpty(this string s) public static bool IsNullOrEmpty(this string s)
{ {
if (s == null) return string.IsNullOrEmpty(s);
{ }
return true;
}
if (s == "" || s == string.Empty) public static bool IsNullOrWhiteSpace(this string s)
{ {
return true; return string.IsNullOrWhiteSpace(s);
} }
return false; public static bool NotNullOrEmpty(this string s)
{
return !IsNullOrEmpty(s);
}
public static bool NotNullOrWhiteSpace(this string s)
{
return !string.IsNullOrWhiteSpace(s);
} }
//Base64编码。 //Base64编码。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册