Remove Method
Definition
- Namespace
- Cuemon.Collections.Generic
- Assemblies
- Cuemon.Core.dll
Remove(T)
Removes the first occurrence of a specific object from the ConditionalCollection<T>.
public abstract bool Remove(T item)
Parameters
itemTThe object to remove from the ConditionalCollection<T>.
Returns
- bool
trueifitemwas successfully removed from the ConditionalCollection<T>; otherwise,false. This method also returns false ifitemis not found in the original ConditionalCollection<T>.
Remove(T, Func<T, bool>, IEqualityComparer<T>)
Removes all occurrences of a specific object from the ConditionalCollection<T> that match the conditions defined by the specified predicate and comparer.
protected bool Remove(T item, Func<T, bool> predicate, IEqualityComparer<T> comparer = null)
Parameters
itemTThe object to remove from the ConditionalCollection<T>.
predicateFunc<T, bool>The function delegate that will iterate and match the specified
itemfrom the ConditionalCollection<T>.comparerIEqualityComparer<T>The IEqualityComparer<T> implementation to use when comparing the specified
itemwith an element from the ConditionalCollection<T>.
Returns
- bool
trueifitemwas successfully removed from the ConditionalCollection<T>; otherwise,false. This method also returns false ifitemis not found in the original ConditionalCollection<T>.