using System.Collections.Generic;
using static System.Console;
var test = new Test();
test.NormalMethod();
WriteLine(test.A);
foreach (var result in test.IteratorMethod())
{
WriteLine(result);
}
WriteLine(test.A); // This prints what number?
public struct Test
public int A;
public void NormalMethod()
A = 5;
public IEnumerable<int> IteratorMethod()
A = 7;
yield return A;