CircularListTRemove Method

Removes the first occurrence of the specific item from the CircularListT.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public bool Remove(
	T item
)

Parameters

item  T
The object to remove from the CircularListT.

Return Value

Boolean
if item was successfully removed from the CircularListT; otherwise, . This method also returns false if item is not found in the original list.

Implements

ICollectionTRemove(T)

Remarks

If the position of the element to remove is known it is recommended to use the RemoveAt method instead.

This method has an O(n) cost.

See Also