Imports System
Imports System.Linq
Imports System.Collections.Generic
Public Class Example
Public Shared Sub Main()
Dim ints1() As Integer = {5, 3, 9, 7, 5, 9}
Dim ints2() As Integer = {8, 3, 6, 4, 4, 9}
' Get the set union of the two arrays.
Dim union As IEnumerable(Of Integer) = ints1.Union(ints2)
For Each num As Integer In union
Console.WriteLine(num & " ")
Next
End Sub
End Class