ScriptWebPart.Union<T> method
Returns the union of all items in multiple collections.
Namespace: Microsoft.Office.Server.Search.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Protected Shared Function Union(Of T) ( _
all As IEnumerable(Of IEnumerable(Of T)), _
comparer As IEqualityComparer(Of T) _
) As IEnumerable(Of T)
'Usage
Dim all As IEnumerable(Of IEnumerable(Of T))
Dim comparer As IEqualityComparer(Of T)
Dim returnValue As IEnumerable(Of T)
returnValue = ScriptWebPart.Union(all, comparer)
protected static IEnumerable<T> Union<T>(
IEnumerable<IEnumerable<T>> all,
IEqualityComparer<T> comparer
)
Type parameters
- T
The type of items in the collections to be combined.
Parameters
all
Type: System.Collections.Generic.IEnumerable<IEnumerable<T>>The collection of item collections.
comparer
Type: System.Collections.Generic.IEqualityComparer<T>The comparison method to use to determine if two items are identical.
Return value
Type: System.Collections.Generic.IEnumerable<T>