Show / Hide Table of Contents

    Class CollectionExtensions

    Extension methods for the System.Collections.Generic.ICollection<T> interface.

    Inheritance
    System.Object
    CollectionExtensions
    Namespace: Cuemon.Collections.Generic
    Assembly: Cuemon.Core.dll
    Syntax
    public static class CollectionExtensions

    Methods

    | Improve this Doc

    AddRange<T>(ICollection<T>, T[])

    Adds the elements of the specified source to the collection.

    Declaration
    public static void AddRange<T>(this ICollection<T> collection, params T[] source)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<T> collection

    The extended collection.

    T[] source

    The sequence of elements that should be added to collection.

    Type Parameters
    Name Description
    T

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

    | Improve this Doc

    AddRange<T>(ICollection<T>, IEnumerable<T>)

    Adds the elements of the specified source to the collection.

    Declaration
    public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> source)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<T> collection

    The extended collection.

    System.Collections.Generic.IEnumerable<T> source

    The sequence of elements that should be added to collection.

    Type Parameters
    Name Description
    T

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

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX