ISet<T>.IntersectWith(IEnumerable<T>) 方法 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
修改当前集,使该集仅包含也存在在指定集合中的元素。
public:
 void IntersectWith(System::Collections::Generic::IEnumerable<T> ^ other);public void IntersectWith (System.Collections.Generic.IEnumerable<T> other);abstract member IntersectWith : seq<'T> -> unitPublic Sub IntersectWith (other As IEnumerable(Of T))参数
- other
- IEnumerable<T>
要与当前集进行比较的集合。
例外
              other 为 null。
注解
此方法忽略 中 other任何重复的元素。