using System; public class Test { public static void Main() { foreach(var i in new[]{1, 2, 3}) { int s = i; } Console.WriteLine(s); } }