Skip to content

Instantly share code, notes, and snippets.

@vcsjones
Created March 23, 2012 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vcsjones/2173295 to your computer and use it in GitHub Desktop.
Save vcsjones/2173295 to your computer and use it in GitHub Desktop.
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