Skip to content

T_Ekstrand_Collections_Generic_TwoKeyDictionary_3_ValueCollection

Fred Ekstrand edited this page Aug 4, 2020 · 2 revisions

TwoKeyDictionary(TKeyA, TKeyB, TValue).ValueCollection Class

Represents the collection of values in a Dictionary<TKeyA,TKeyB,TValue>. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  Ekstrand.Collections.Generic.TwoKeyDictionary(TKeyA, TKeyB, TValue).ValueCollection
Namespace: Ekstrand.Collections.Generic
Assembly: TwoKeyDictionary (in TwoKeyDictionary.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public sealed class ValueCollection : ICollection<TValue>, 
	IEnumerable<TValue>, IEnumerable, ICollection, IReadOnlyCollection<TValue>

VB

Public NotInheritable Class ValueCollection
	Implements ICollection(Of TValue), IEnumerable(Of TValue), 
	IEnumerable, ICollection, IReadOnlyCollection(Of TValue)

C++

public ref class ValueCollection sealed : ICollection<TValue>, 
	IEnumerable<TValue>, IEnumerable, ICollection, IReadOnlyCollection<TValue>

F#

[<SealedAttribute>]
type ValueCollection =  
    class
        interface ICollection<'TValue>
        interface IEnumerable<'TValue>
        interface IEnumerable
        interface ICollection
        interface IReadOnlyCollection<'TValue>
    end

The TwoKeyDictionary(TKeyA, TKeyB, TValue).ValueCollection generic type exposes the following members.

Constructors

 

Name Description
Public method TwoKeyDictionary(TKeyA, TKeyB, TValue).ValueCollection Initializes a new instance of the Dictionary<TKeyA,TKeyB,TValue>.ValueCollection class that reflects the values in the specified Dictionary<TKeyA,TKeyB,TValue>.
  Back to Top

Properties

 

Name Description
Public property Count Gets the number of elements contained in the Dictionary<TKeyA,TKeyB,TValue>.ValueCollection.
  Back to Top

Methods

 

Name Description
Public method CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the Dictionary<TKeyA,TKeyB,TValue>.ValueCollection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Explicit Interface Implementations

 

Name Description
Explicit interface implementationPrivate method ICollection(TValue).Add Adds an item to the ICollection. This implementation always throws NotSupportedException.
Explicit interface implementationPrivate method ICollection(TValue).Clear Removes all items from the ICollection.This implementation always throws NotSupportedException.
Explicit interface implementationPrivate method ICollection(TValue).Contains Determines whether the ICollection contains a specific value.
Explicit interface implementationPrivate method ICollection.CopyTo Copies the Dictionary<TKeyA,TKeyB,TValue>.ValueCollection elements to an existing one-dimensional Array, starting at the specified array index.
Explicit interface implementationPrivate method IEnumerable(TValue).GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate property ICollection(TValue).IsReadOnly Gets a value indicating whether the ICollection is read-only.
Explicit interface implementationPrivate property ICollection.IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementationPrivate method ICollection(TValue).Remove
Explicit interface implementationPrivate property ICollection.SyncRoot Gets an object that can be used to synchronize access to the ICollection.
  Back to Top

See Also

Reference

Ekstrand.Collections.Generic Namespace

Clone this wiki locally