Table of Contents

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

list IList<T>
predicate Predicate<T>

Returns

bool

Whether an item was removed.

Type Parameters

T