Skip to content

Instantly share code, notes, and snippets.

@stephentoub
Last active June 7, 2017 16:01
// https://referencesource.microsoft.com/#System.Core/System/Linq/Enumerable.cs,692
static IEnumerable<TSource> ConcatIterator<TSource>(IEnumerable<TSource> first, IEnumerable<TSource> second) {
foreach (TSource element in first) yield return element;
foreach (TSource element in second) yield return element;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment