Skip to content

Instantly share code, notes, and snippets.

@aalmada
Created April 26, 2021 17:10
Show Gist options
  • Save aalmada/ec63e08fb358c741321c35c2d0e75555 to your computer and use it in GitHub Desktop.
Save aalmada/ec63e08fb358c741321c35c2d0e75555 to your computer and use it in GitHub Desktop.
public class Enumerable<T>
{
public Enumerable<T> GetEnumerator()
=> this;
public T Current
=> default;
public bool MoveNext()
=> default;
}
public class AsyncEnumerable<T>
{
public AsyncEnumerable<T> GetAsyncEnumerator()
=> this;
public T Current
=> default;
public ValueTask<bool> MoveNextAsync()
=> default;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment