Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Created August 30, 2021 02:55
Show Gist options
  • Select an option

  • Save dsibinski/f40065534bf002dbdce0e834db636d3c to your computer and use it in GitHub Desktop.

Select an option

Save dsibinski/f40065534bf002dbdce0e834db636d3c to your computer and use it in GitHub Desktop.
class MyObject
{
public int Value { get; set; }
}
class MyCollection : IEnumerable<MyObject>
{
public IEnumerator<MyObject> GetEnumerator()
{
throw new NotImplementedException();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment