You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be put on hold as dotnet/roslyn#36 will help to avoid adding all those overloads (and more) if the feature makes it into C# 7 or vNext. Meanwhile, it's merely about convenience for very short and hard-coded sequences.
Thanks Sergey. Of all the suggestions I saw on there though, I think params enhancements is a pretty trivial matter. (But, perhaps that will make it more likely to be implemented.) All my votes are currently on suggestions dealing with static interfaces/generics, integrated code contracts, and non-nullable types.
For some operators, it would be very convenient to have overloads that take
params
arrays as arguments.Union(this IEnumerable<T> source, T item, params T[] items)
Except(this IEnumerable<T> source, T item, params T[] items)
Concat(this IEnumerable<T> source, T item, params T[] items)
Intersect(this IEnumerable<T> source, T item, params T[] items)
Intersect seems less useful than the others, but it might as well be included for completeness if the other three are.
The text was updated successfully, but these errors were encountered: