Confuser.Core/Utils.cs
/// <summary>
///     Removes all elements that match the conditions defined by the specified predicate from a the list.
/// </summary>
/// <typeparam name="T">The type of the elements of <paramref name="self" />.</typeparam>
/// <param name="self">The list to remove from.</param>
/// <param name="match">The predicate that defines the conditions of the elements to remove.</param>
/// <returns><paramref name="self" /> for method chaining.</returns>
Removes all elements that match the conditions defined by the specified predicate from a the list.
Removes all elements that match the conditions defined by the specified predicate from a the list .
public static IList<T> RemoveWhere<T>(this IList<T> self, Predicate<T> match)
        {
            for (int i = self.Count - 1; i >= 0; i--)
            {
                if (match(self[i]))
                    self.RemoveAt(i);
            }
            return self;
        }
public static IList < T > RemoveWhere < T > ( this IList < T > self , Predicate < T > match ) { for ( int i = self . Count - 1 ; i >= 0 ; i -- ) { if ( match ( self [ i ] ) ) self . RemoveAt ( i ) ; } return self ; }
Removes all elements that match the conditions defined by the specified predicate from a the list.
Removes all elements that match the conditions defined by the specified predicate from a the list .
for method chaining.
for method chaining .
IList<T>
this
match
Predicate<T>
The predicate that defines the conditions of the elements to remove.
The predicate that defines the conditions of the elements to remove .
self
The list to remove from.
The list to remove from .
typeparam
The type of the elements of .
The type of the elements of .