Invalid Code public class Iterator { } public class Test { public Iterator iterator (int foo) { return new Iterator (); } } void main () { Test test = null; foreach (var t in test) { } }