Class ListExtensions
Extension methods for the System.Collections.Generic.IList<T> interface.
Inheritance
System.Object
ListExtensions
Namespace: Cuemon.Collections.Generic
Assembly: Cuemon.Core.dll
Syntax
public static class ListExtensions
Methods
| Improve this DocRemove<T>(IList<T>, Func<T, Boolean>)
Removes the first occurrence of a specific object from the list
.
Declaration
public static bool Remove<T>(this IList<T> list, Func<T, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<T> | list | The extended list. |
System.Func<T, System.Boolean> | predicate | The function delegate that defines the conditions of the element to remove. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Type Parameters
Name | Description |
---|---|
T | The type of elements in the System.Collections.Generic.IList<T>. |