Show / Hide Table of Contents

    Interface IReadOnlySet<T>

    A read-only set.

    Inherited Members
    System.Collections.Generic.IReadOnlyCollection<T>.Count
    System.Collections.Generic.IEnumerable<T>.GetEnumerator()
    Namespace: Virtlink.Utilib.Collections
    Assembly: Virtlink.Utilib.dll
    Syntax
    public interface IReadOnlySet<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    The type of elements in the set.

    Methods

    | Improve this Doc View Source

    Contains(T)

    Determines whether the specified item is contained in the set.

    Declaration
    bool Contains(T item)
    Parameters
    Type Name Description
    T item

    The item to look for.

    Returns
    Type Description
    System.Boolean

    true when the item is in the set; otherwise, false.

    | Improve this Doc View Source

    IsProperSubsetOf(IEnumerable<T>)

    Determines whether the specified collection is a proper subset of this set.

    Declaration
    bool IsProperSubsetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> other

    The collection.

    Returns
    Type Description
    System.Boolean

    true when the specified collection is a proper subset of this set; otherwise, false.

    | Improve this Doc View Source

    IsProperSupersetOf(IEnumerable<T>)

    Determines whether the specified collection is a proper superset of this set.

    Declaration
    bool IsProperSupersetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> other

    The collection.

    Returns
    Type Description
    System.Boolean

    true when the specified collection is a proper superset of this set; otherwise, false.

    | Improve this Doc View Source

    IsSubsetOf(IEnumerable<T>)

    Determines whether the specified collection is a subset of this set.

    Declaration
    bool IsSubsetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> other

    The collection.

    Returns
    Type Description
    System.Boolean

    true when the specified collection is a subset of this set; otherwise, false.

    | Improve this Doc View Source

    IsSupersetOf(IEnumerable<T>)

    Determines whether the specified collection is a superset of this set.

    Declaration
    bool IsSupersetOf(IEnumerable<T> other)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> other

    The collection.

    Returns
    Type Description
    System.Boolean

    true when the specified collection is a superset of this set; otherwise, false.

    | Improve this Doc View Source

    Overlaps(IEnumerable<T>)

    Determines whether the specified collection overlaps this set.

    Declaration
    bool Overlaps(IEnumerable<T> other)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> other

    The collection.

    Returns
    Type Description
    System.Boolean

    true when the specified collection overlaps this set; otherwise, false.

    | Improve this Doc View Source

    SetEquals(IEnumerable<T>)

    Determines whether this set and the specified collection are equal.

    Declaration
    bool SetEquals(IEnumerable<T> other)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> other

    The collection.

    Returns
    Type Description
    System.Boolean

    true when the specified collection is equal to this set; otherwise, false.

    | Improve this Doc View Source

    TryGetValue(T, out T)

    Determines whether the set contains a specified value.

    Declaration
    bool TryGetValue(T equalValue, out T actualValue)
    Parameters
    Type Name Description
    T equalValue

    The value to search for.

    T actualValue

    The matching value from the set, if found; otherwise, equalValue if there are no matches.

    Returns
    Type Description
    System.Boolean

    true if a matching value was found; otherwise, false.

    Extension Methods

    Enumerables.AsList<T>(IEnumerable<T>)
    Enumerables.OrIfEmpty<T>(IEnumerable<T>, IEnumerable<T>)
    Enumerables.ZipEqual<T1, T2, TResult>(IEnumerable<T1>, IEnumerable<T2>, Func<T1, T2, TResult>)
    Enumerables.CreateSafetyCopy<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    Back to top Copyright - Daniel Pelsmaeker