XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension

【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension

fix-现在string扩展方法中的IsNullOrEmpty和IsNullOrWhiteSpace现在允许传入可为null的string对象

1f623cb
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

2 个文件 +4 -4
Modified XFEExtension.NetCore/StringExtension/StringExtension.cs +2 -2
@@ -78,14 +78,14 @@ public static partial class StringExtension
78 78 /// </summary>
79 79 /// <param name="str"></param>
80 80 /// <returns></returns>
81 public static bool IsNullOrEmpty(this string str) => string.IsNullOrEmpty(str);
81 public static bool IsNullOrEmpty(this string? str) => string.IsNullOrEmpty(str);
82 82
83 83 /// <summary>
84 84 /// 判断字符串是否是 null 、空字符串和仅包含空格的字符串
85 85 /// </summary>
86 86 /// <param name="str"></param>
87 87 /// <returns></returns>
88 public static bool IsNullOrWhiteSpace(this string str) => string.IsNullOrWhiteSpace(str);
88 public static bool IsNullOrWhiteSpace(this string? str) => string.IsNullOrWhiteSpace(str);
89 89
90 90 /// <summary>
91 91 /// 判断字符串是否为邮箱地址
Modified XFEExtension.NetCore/XFEExtension.NetCore.csproj +2 -2
@@ -5,7 +5,7 @@
5 5 <ImplicitUsings>enable</ImplicitUsings>
6 6 <Nullable>enable</Nullable>
7 7 <GenerateDocumentationFile>True</GenerateDocumentationFile>
8 <Version>3.2.1</Version>
8 <Version>3.2.2</Version>
9 9 <Title>XFEExtension</Title>
10 10 <RepositoryUrl>https://github.com/XFEstudio/XFEExtension</RepositoryUrl>
11 11 <AnalysisLevel>latest</AnalysisLevel>
@@ -21,7 +21,7 @@
21 21 <PackageReleaseNotes>
22 22 ## 调整
23 23
24 XFEConverter:ObjectInfo中,添加原始的PropertyInfo和FieldInfo信息以及Parent对象
24 修复:现在string扩展方法中的IsNullOrEmpty和IsNullOrWhiteSpace现在允许传入可为null的string对象
25 25
26 26 ## 新增
27 27