Editare

Partajați prin


ISet<T>.ExceptWith(IEnumerable<T>) Method

Definition

Removes all elements in the specified collection from the current set.

public:
 void ExceptWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void ExceptWith (System.Collections.Generic.IEnumerable<T> other);
abstract member ExceptWith : seq<'T> -> unit
Public Sub ExceptWith (other As IEnumerable(Of T))

Parameters

other
IEnumerable<T>

The collection of items to remove from the set.

Exceptions

other is null.

Remarks

This method is an O(n) operation, where n is the number of elements in the other parameter.

Applies to