Modifies the current SortedSet<T> object so that it contains only elements that are also in a specified collection.
Assemblies: System (in System.dll)
System.Collections (in System.Collections.dll)
This method ignores any duplicate elements in other.
If the collection represented by the other parameter is a SortedSet<T> collection with the same equality comparer as the current SortedSet<T> object, this method is an O(n) operation. Otherwise, this method is an O(n + m) operation, where n is Count and m is the number of elements in other.