## ISet::IntersectWith method


Removes elements not present in different container.

```cpp
virtual void System::Collections::Generic::ISet<T>::IntersectWith(IEnumerablePtr other)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | IEnumerablePtr | Elements to keep (if present). |

## See Also

* Typedef [IEnumerablePtr](../ienumerableptr/)
* Class [ISet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
