XFEExtension
【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFEExtension.NetCore/StringExtension/StringExtension.cs
+2
-2
XFEstudio/XFEExtension
优化代码格式
d162834
代码差异
1 个文件
+2
-2
@@ -282,7 +282,7 @@ public static partial class StringExtension
282
282
/// <param name="remarkName">对象别名</param>
283
283
/// <param name="onlyProperty"></param>
284
284
/// <param name="onlyPublic"></param>
285
public string? X(bool onlyProperty = true, bool onlyPublic = true, string remarkName = "分析对象")
285
public string X(bool onlyProperty = true, bool onlyPublic = true, string remarkName = "分析对象")
286
286
{
287
287
var fatherList = new List<object>();
288
288
if (obj is not null)
@@ -316,7 +316,7 @@ public static partial class StringExtension
316
316
/// <returns></returns>
317
317
public static string GenerateRandomString(int length)
318
318
{
319
var allowedChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
319
const string allowedChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
320
320
Random random = new();
321
321
var randomChars = new char[length];
322
322