Created
May 5, 2020 17:41
-
-
Save WrackedFella/0ccdee7efe740432762892387607c81d to your computer and use it in GitHub Desktop.
This file contains 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 KeyValuePairDataContainer : IEnumerable<KeyValuePair<string, string>[]> | |
{ | |
public IEnumerator<KeyValuePair<string, string>[]> GetEnumerator() | |
{ | |
yield return new KeyValuePair<string, string>[] | |
{ | |
new KeyValuePair<string, string>("key1", "value1") | |
}; | |
yield return new KeyValuePair<string, string>[] | |
{ | |
new KeyValuePair<string, string>("key2", "value2") | |
}; | |
yield return new KeyValuePair<string, string>[] | |
{ | |
new KeyValuePair<string, string>("key3", "value3") | |
}; | |
yield return new KeyValuePair<string, string>[] | |
{ | |
new KeyValuePair<string, string>("key4", "value4") | |
}; | |
yield return new KeyValuePair<string, string>[] | |
{ | |
new KeyValuePair<string, string>("key5", "value5") | |
}; | |
} | |
IEnumerator IEnumerable.GetEnumerator() | |
{ | |
return GetEnumerator(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment