Aggregate and ForEach

This commit is contained in:
neuecc
2020-05-10 00:33:46 +09:00
parent 31b788a2c9
commit f37cd703a9
6 changed files with 451 additions and 837 deletions

View File

@@ -34,13 +34,12 @@ namespace NetCoreSandbox
static async Task Main(string[] args)
{
var xs = new[] { 1, 10, 100 }.GetEnumerator();
while (xs.MoveNext())
{
new int[] { }.Aggregate((x, y) => x + y);
}
Console.WriteLine(xs.MoveNext());
await Task.Yield();
}