Set DocumentationIntersect With Method
Modifies the current set so that it contains only elements that are also in a specified collection.
Definition
Namespace: XMLCommentsExamples.DocumentationInheritance
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public void IntersectWith(
IEnumerable<int> other
)VB
Public Sub IntersectWith (
other As IEnumerable(Of Integer)
)C++
public:
virtual void IntersectWith(
IEnumerable<int>^ other
) sealedF#
abstract IntersectWith :
other : IEnumerable<int> -> unit
override IntersectWith :
other : IEnumerable<int> -> unit Parameters
- other IEnumerableInt32
- The collection to compare to the current set.
Implements
ISetTIntersectWith(IEnumerableT)Exceptions
| ArgumentNullException | other is . |