Remove Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Generic
- Assemblies
- Cuemon.Extensions.Collections.Generic.dll
Remove<T>(IList<T>, Func<T, bool>)
Removes the first occurrence of a specific object from the list.
public static bool Remove<T>(this IList<T> list, Func<T, bool> predicate)
Parameters
listIList<T>The IList<T> to extend.
predicateFunc<T, bool>The function delegate that defines the conditions of the element to remove.
Returns
- bool
trueif item was successfully removed from thelist,falseotherwise.
Type Parameters
TThe type of elements in the IList<T>.