ImmutableSortedSet<T>.IImmutableSet<T>.Except Method (IEnumerable<T>)

 

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

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

IImmutableSet<T> IImmutableSet<T>.Except(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.Generic.IEnumerable<T>

The items to remove from this set.

Return Value

Type: System.Collections.Immutable.IImmutableSet<T>

The new set with the items removed; or the original set if none of the items were in the set.

This member is an explicit interface member implementation. It can be used only when the ImmutableSortedSet<T> instance is cast to an IImmutableSet<T> interface.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Return to top
Show: