SortedSet<T>.Remove Method (T)

.NET Framework (current version)
 

Removes a specified item from the SortedSet<T>.

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

public bool Remove(
	T item
)

Parameters

item
Type: T

The element to remove.

Return Value

Type: System.Boolean

true if the element is found and successfully removed; otherwise, false.

If the SortedSet<T> object does not contain the specified element, the object remains unchanged and no exception is thrown.

item can be null for reference types.

This method is an O(log n) operation.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: