Skip to content

T_Ekstrand_Collections_Generic_TwoKeyDictionary_3_KeyBCollection

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

TwoKeyDictionary(TKeyA, TKeyB, TValue).KeyBCollection Class

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

Inheritance Hierarchy

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

Syntax

C#

[SerializableAttribute]
public sealed class KeyBCollection : ICollection<TKeyB>, 
	IEnumerable<TKeyB>, IEnumerable, ICollection, IReadOnlyCollection<TKeyB>

VB

<SerializableAttribute>
Public NotInheritable Class KeyBCollection
	Implements ICollection(Of TKeyB), IEnumerable(Of TKeyB), 
	IEnumerable, ICollection, IReadOnlyCollection(Of TKeyB)

C++

[SerializableAttribute]
public ref class KeyBCollection sealed : ICollection<TKeyB>, 
	IEnumerable<TKeyB>, IEnumerable, ICollection, IReadOnlyCollection<TKeyB>

F#

[<SealedAttribute>]
[<SerializableAttribute>]
type KeyBCollection =  
    class
        interface ICollection<'TKeyB>
        interface IEnumerable<'TKeyB>
        interface IEnumerable
        interface ICollection
        interface IReadOnlyCollection<'TKeyB>
    end

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

Constructors

 

Name Description
Public method TwoKeyDictionary(TKeyA, TKeyB, TValue).KeyBCollection Initializes a new instance of the Dictionary<TKeyA,TKeyB,TValue>.KeyBCollection class that reflects the A-keys 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>.KeyBCollection.
Public property IsReadOnly Gets a value indicating whether the ICollection is read-only.
  Back to Top

Methods

 

Name Description
Public method CopyTo Copies the Dictionary<TKeyA,TKeyB,TValue>.KeyBCollection elements to an existing one-dimensional Array, starting at the specified 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>.KeyBCollection.
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(TKeyB).Add Adds an item to the ICollection. This implementation always throws NotSupportedException.
Explicit interface implementationPrivate method ICollection(TKeyB).Clear Removes all items from the ICollection. This implementation always throws NotSupportedException.
Explicit interface implementationPrivate method ICollection(TKeyB).Contains Determines whether the ICollection contains a specific value.
Explicit interface implementationPrivate method ICollection.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
Explicit interface implementationPrivate method IEnumerable(TKeyB).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(TKeyB).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(TKeyB).Remove Removes the first occurrence of a specific object from the ICollection. This implementation always throws NotSupportedException.
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