Set union of this view and a collection.

Namespace:  C1.LiveLinq.LiveViews
Assembly:  C1.Silverlight.LiveLinq (in C1.Silverlight.LiveLinq.dll)

Syntax

C#
public View<T> Union(
	ObservableCollection<T> second
)
Visual Basic
Public Function Union ( _
	second As ObservableCollection(Of T) _
) As View(Of T)

Parameters

second
Type: System.Collections.ObjectModel..::..ObservableCollection<(Of <(<'T>)>)>
A collection whose distinct elements form the second set for the union.

Return Value

The view that contains the elements from both this view and the collection, excluding duplicates.

Remarks

This method excludes duplicates from the result set. This is different behavior to the Concat(ObservableCollection<(Of <<'(T>)>>)) method, which returns all the elements in the input sequences including duplicates.

See Also