XFEExtension
【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFE各类拓展.NetCore/XFE各类拓展/XFEExtension.cs
+17
-0
XFEstudio/XFEExtension
准备添加int型拓展方法
5e1f0b5
代码差异
1 个文件
+17
-0
@@ -21,4 +21,21 @@ public static class XFEExtension
21
21
/// <returns></returns>
22
22
public static TaskAwaiter GetAwaiter(this double waitTime)
23
23
=> Task.Delay(TimeSpan.FromSeconds(waitTime)).GetAwaiter();
24
//public static IEnumerator<int> GetEnumerator(this Range range)
25
//{
26
27
//}
28
public static IEnumerator<int> GetEnumerator(this int count)
29
{
30
for (int i = 0; i <= count; i++)
31
{
32
yield return i;
33
}
34
}
24
35
}
36
public class XFEEnumerator(Range range)
37
{
38
private int current;
39
private readonly int end;
40
41
}