Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Class HashSetDictionary<TKey, TValue>.ReadOnlyValueSet

    Represents a synchronized read-only set of values associated with a key in a HashSetDictionary<TKey, TValue>.

    Inheritance
    object
    HashSetDictionary<TKey, TValue>.ReadOnlyValueSet
    HashSetDictionary<TKey, TValue>.ValueSet
    Implements
    ISet<TValue>
    ICollection<TValue>
    IReadOnlySet<TValue>
    IReadOnlyCollection<TValue>
    IEnumerable<TValue>
    IEnumerable
    IEquatable<HashSetDictionary<TKey, TValue>.ReadOnlyValueSet>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Singulink.Collections
    Assembly: Singulink.Collections.dll
    Syntax
    public class HashSetDictionary<TKey, TValue>.ReadOnlyValueSet : ISet<TValue>, ICollection<TValue>, IReadOnlySet<TValue>, IReadOnlyCollection<TValue>, IEnumerable<TValue>, IEnumerable, IEquatable<HashSetDictionary<TKey, TValue>.ReadOnlyValueSet>

    Properties

    Name Description
    Count

    Gets the number of items in this value set. If the count is zero, this value set is detached from Dictionary, i.e. calling ContainsKey(TKey) on the dictionary and passing in Key as a parameter will return false. When items are added to the value set it is attached (or re-attached) to the dictionary.

    Dictionary

    Gets the dictionary this value set is associate with.

    Key

    Gets the key this value set is associated with.

    Methods

    Name Description
    AsTransientReadOnly()

    Returns a fast read-only wrapper around the underlying HashSet<T> that is only guaranteed to be valid until the values associated with Key in Dictionary are modified.

    Contains(TValue)

    Determines whether the set contains the specified item.

    CopyTo(TValue[])

    Copies the elements of the set to an array.

    CopyTo(TValue[], int)

    Copies the elements of the set to an array starting at the specified index.

    Equals(ReadOnlyValueSet?)

    Determines whether this value set is equal to another value set. Value sets are considered equal if they point to the same Dictionary with the same Key.

    Equals(object?)

    Determines whether this value set is equal to another object. Value sets are considered equal if they point to the same Dictionary and Key.

    GetEnumerator()

    Returns an enumerator that iterates through the underlying HashSet<T>.

    GetHashCode()

    Returns a hash code for this value set.

    IsProperSubsetOf(IEnumerable<TValue>)

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

    IsProperSupersetOf(IEnumerable<TValue>)

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

    IsSubsetOf(IEnumerable<TValue>)

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

    IsSupersetOf(IEnumerable<TValue>)

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

    Overlaps(IEnumerable<TValue>)

    Determines whether this set and the specified set share any common elements.

    SetEquals(IEnumerable<TValue>)

    Determines whether this set and the specified collection contain the same elements.

    Operators

    Name Description
    operator ==(ReadOnlyValueSet?, ReadOnlyValueSet?)

    Determines whether two value sets are equal. Value sets are considered equal if they point to the same Dictionary with the same Key.

    operator !=(ReadOnlyValueSet?, ReadOnlyValueSet?)

    Determines whether two value sets are not equal. Value sets are considered equal if they point to the same Dictionary with the same Key.

    Explicit Interface Implementations

    Name Description
    ICollection<TValue>.Add(TValue)

    Not supported.

    ICollection<TValue>.Clear()

    Not supported.

    ICollection<TValue>.IsReadOnly

    Gets a value indicating whether the set is read-only. Always returns true.

    ICollection<TValue>.Remove(TValue)

    Not supported.

    IEnumerable<TValue>.GetEnumerator()

    Returns an enumerator that iterates through the underlying HashSet<T>.

    ISet<TValue>.Add(TValue)

    Not supported.

    ISet<TValue>.ExceptWith(IEnumerable<TValue>)

    Not supported.

    ISet<TValue>.IntersectWith(IEnumerable<TValue>)

    Not supported.

    ISet<TValue>.SymmetricExceptWith(IEnumerable<TValue>)

    Not supported.

    ISet<TValue>.UnionWith(IEnumerable<TValue>)

    Not supported.

    IEnumerable.GetEnumerator()

    Returns an enumerator that iterates through the underlying HashSet<T>.

    © Singulink. All rights reserved.