Skip to content

Instantly share code, notes, and snippets.

Created Jun 24, 2022
What would you like to do?
private struct Enumerator
private readonly KeyValuePair<string, object>[] source;
private int index;
public Enumerator(KeyValuePair<string, object>[] source)
this.source = source;
this.index = -1;
public readonly KeyValuePair<string, object> Current => this.source[this.index];
public readonly Enumerator GetEnumerator() => this;
public bool MoveNext()
return ++this.index < this.source.Length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment