Possible Duplicate:
What is the best wayto add single element to an IEnumerable collection?
Let’s say I want to concantenate Enumerable.Repeat(100, 100) and the number 3, what is the nicest way to do this?
Of course I can do
Enumerable.Repeat(100, 100).Concat(Enumerable.Repeat(3,1)), but it doesn’t look very expressive…
EDIT It’s suggested not to use the method name
Concat, usingConcatSingleorConcatOneinstead, see the discussions in below comments.