Union
suggest changeMerges two collections to create a distinct collection using the default equality comparer
int[] numbers1 = { 1, 2, 3 };
int[] numbers2 = { 2, 3, 4, 5 };
var allElement = numbers1.Union(numbers2); // AllElement now contains 1,2,3,4,5
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents