void Each() { var notEnumerable = new NotIEnumerable(); Console.WriteLine("Before foreach"); foreach (var x in notEnumerable) x.Dump(); }