ImmutableHashSet<T>.Except(IEnumerable<T>) 方法

定义

从当前不可变哈希集内移除指定集合中的元素。Removes the elements in the specified collection from the current immutable hash set.

public:
 System::Collections::Immutable::ImmutableHashSet<T> ^ Except(System::Collections::Generic::IEnumerable<T> ^ other);
public System.Collections.Immutable.ImmutableHashSet<T> Except (System.Collections.Generic.IEnumerable<T> other);
member this.Except : seq<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function Except (other As IEnumerable(Of T)) As ImmutableHashSet(Of T)

参数

other
IEnumerable<T>

要从此集内移除的项的集合。The collection of items to remove from this set.

返回

已移除项的新集;如果原始集不包含任何项,则为原始集。A new set with the items removed; or the original set if none of the items were in the set.

适用于