Show / Hide Table of Contents

    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 Doc

    Remove<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

    true if item was successfully removed from the list, false otherwise.

    Type Parameters
    Name Description
    T

    The type of elements in the System.Collections.Generic.IList<T>.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Remove<T>(IList<T>, Func<T, Boolean>)
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX