Unosquare
    Show / Hide Table of Contents

    Class EnumerableExtensions

    This class contains extension methods for types implementing IEnumerable<TSource>

    Inheritance
    Object
    EnumerableExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan
    Syntax
    public static class EnumerableExtensions

    Methods

    UnionExcludingNulls<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)

    This method returns the Union of all non-null parameters.

    Declaration
    public static IEnumerable<TSource> UnionExcludingNulls<TSource>(this IEnumerable<TSource> this, IEnumerable<TSource> second)
    Parameters
    Type Name Description
    IEnumerable<TSource> this

    An IEnumerable<TSource> whose distinct elements forms the first set of the union.

    IEnumerable<TSource> second

    An IEnumerable<TSource> whose distinct elements forms the second set of the union.

    Returns
    Type Description
    IEnumerable<TSource>

    An that contains the elements from non-null input sequences, excluding duplicates.

    Type Parameters
    Name Description
    TSource

    The type of the elements of the input sequences.

    UnionExcludingNulls<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

    This method returns the Union of all non-null parameters.

    Declaration
    public static IEnumerable<TSource> UnionExcludingNulls<TSource>(this IEnumerable<TSource> this, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
    Parameters
    Type Name Description
    IEnumerable<TSource> this

    An IEnumerable<TSource> whose distinct elements forms the first set of the union.

    IEnumerable<TSource> second

    An IEnumerable<TSource> whose distinct elements forms the second set of the union.

    IEqualityComparer<TSource> comparer

    The IEqualityComparer<TSource> to compare values.

    Returns
    Type Description
    IEnumerable<TSource>

    An that contains the elements from non-null input sequences, excluding duplicates.

    Type Parameters
    Name Description
    TSource

    The type of the elements of the input sequences.

    Comments

    Back to top Copyright © 2017-2019 Unosquare