Export (0) Print
Expand All

ImmutableHashSet<T>.Intersect Method

Creates an immutable hash set that contains elements that exist in both this set and the specified set.

Namespace:  System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public ImmutableHashSet<T> Intersect(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.Generic.IEnumerable<T>

The collection to compare to the current set.

Return Value

Type: System.Collections.Immutable.ImmutableHashSet<T>
A new immutable set that contains any elements that exist in both sets.
Show:
© 2014 Microsoft