Method RemoveFirst
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
RemoveFirst<T>(IList<T>, Predicate<T>)
Removes the first item matching the predicate from the list.
public static bool RemoveFirst<T>(this IList<T> list, Predicate<T> predicate)
Parameters
Returns
- bool
Whether an item was removed.
Type Parameters
T