Created
March 23, 2012 18:05
-
-
Save vcsjones/2173295 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IFoo | |
{ | |
public object Current { get; set; } | |
public bool MoveNext() | |
{ | |
return whatever; | |
} | |
} | |
public class Bar | |
{ | |
public IFoo GetEnumerator() | |
{ | |
return whatever; | |
} | |
} | |
class Program | |
{ | |
static void Main() | |
{ | |
foreach (var item in new Bar()) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment