Set Operators-Union
The Union operator produces the set union of two sequences.
This example prints the unique elements of two integer arrays. The example uses the Union method to create a sequence that is a union of the two integer arrays with duplicate elements removed.
using System; namespace ConsoleApplication4 var uniqueNumbers = numbersA.Union(numbersB); Console.WriteLine("Unique numbers from both arrays:"); |
Output:
Aspnet Discussion
- - Web application
- - Great Indian Developer Su
- - Aspx page inside Silverli
- - Open aspx page inside Sil
- - Guidance for a novice





