c# - Is there a Linq method to 'extend' collection? -
i wonder if there linq method enumerate on collection after current one? if not, why not?
to highlight mean, imagine had:
list<int> = new list<int> { 1, 2, 3 }; int[] b = { 1, 5, 6 };
then asking if there linq method such a.myhypotheticalextensionmethod(b)
produce ienumerable containing: {1,2,3,1,5,6}
of course, trivial roll one's own (or work around) definately seems ought included in linq?
you're looking a.concat(b)
.
c# linq
No comments:
Post a Comment