Last active
June 7, 2017 16:01
-
-
Save stephentoub/83fe6843d93d0cf29c45f4211f2859d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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