2025-10-17 15:47:20 +08:00
|
|
|
|
using Convention;
|
|
|
|
|
|
using Convention.EasySave;
|
|
|
|
|
|
using Convention.RScript;
|
2025-10-27 10:51:17 +08:00
|
|
|
|
using Convention.RScript.Variable;
|
|
|
|
|
|
using Convention.RScript.Variable.Attr;
|
|
|
|
|
|
using Convention.RScript.Variable.CStyle;
|
2025-10-09 18:02:00 +08:00
|
|
|
|
using System;
|
2025-10-17 15:47:20 +08:00
|
|
|
|
using System.IO;
|
2025-12-15 16:53:02 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Threading;
|
2025-06-13 10:52:21 +08:00
|
|
|
|
|
|
|
|
|
|
public class Program
|
|
|
|
|
|
{
|
2025-12-15 16:53:02 +08:00
|
|
|
|
static int i = 0;
|
|
|
|
|
|
|
|
|
|
|
|
static IEnumerator Test1()
|
|
|
|
|
|
{
|
|
|
|
|
|
Console.WriteLine(i);
|
|
|
|
|
|
for(; ; )
|
|
|
|
|
|
yield return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static IEnumerator Test()
|
2025-10-16 11:29:50 +08:00
|
|
|
|
{
|
2025-12-15 16:53:02 +08:00
|
|
|
|
yield return Test1();
|
2025-10-16 11:29:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-06-13 10:52:21 +08:00
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
|
{
|
2025-12-15 16:53:02 +08:00
|
|
|
|
var ir = Test();
|
|
|
|
|
|
while (ir.MoveNext())
|
|
|
|
|
|
Thread.Sleep(1000);
|
2025-06-13 10:52:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|