XFEExtension
【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFEExtension.NetCore/StringExtension/StringExtension.cs
+12
-2
XFEstudio/XFEExtension
修复部分问题
52136a3
代码差异
1 个文件
+12
-2
@@ -127,17 +127,27 @@ public static partial class StringExtension
127
127
/// <param name="str"></param>
128
128
extension([NotNullWhen(false)] string? str)
129
129
{
130
/// <summary>
131
/// 字符串为 null 或者是空字符串
132
/// </summary>
133
public bool NullOrEmpty => string.IsNullOrEmpty(str);
134
135
/// <summary>
136
/// 字符串为 null 、空字符串或仅包含空格
137
/// </summary>
138
public bool NullOrWhiteSpace => string.IsNullOrWhiteSpace(str);
139
130
140
/// <summary>
131
141
/// 判断字符串是否为 null 或者是空字符串
132
142
/// </summary>
133
143
/// <returns></returns>
134
public bool IsNullOrEmpty => string.IsNullOrEmpty(str);
144
public bool IsNullOrEmpty() => string.IsNullOrEmpty(str);
135
145
136
146
/// <summary>
137
147
/// 判断字符串是否是 null 、空字符串和仅包含空格的字符串
138
148
/// </summary>
139
149
/// <returns></returns>
140
public bool IsNullOrWhiteSpace => string.IsNullOrWhiteSpace(str);
150
public bool IsNullOrWhiteSpace() => string.IsNullOrWhiteSpace(str);
141
151
}
142
152
143
153
private static string DomainMapper(Match match)