Performs an "intersection" of the two sets, where only the elements
that are present in both sets remain. That is, the element is included only if it exists in
both a and b. Neither input object is modified by the operation.
The result object is a Clone() of one of the input objects (a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) containing the
elements from the intersect operation.
Namespace: Iesi.Collections.GenericAssembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)
Syntax
Visual Basic |
---|
Public Shared Function Intersect ( _
a As ISet(Of T), _
b As ISet(Of T) _
) As ISet(Of T) |
Visual C++ |
---|
public:
static ISet<T>^ Intersect(
ISet<T>^ a,
ISet<T>^ b
) |
Return Value
The intersection of the two input sets.
nullNothingnullptra null reference (Nothing in Visual Basic) if both sets are
nullNothingnullptra null reference (Nothing in Visual Basic).
See Also