ConcurrentIndexedDictionaryTKey, TValue Class

A thread-safe indexed dictionary that can only be added to.

Definition

Namespace: SnapDB.Collections
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class ConcurrentIndexedDictionary<TKey, TValue>
Inheritance
Object    ConcurrentIndexedDictionaryTKey, TValue

Type Parameters

TKey
The type of keys in the dictionary.
TValue
The type of values in the dictionary.

Remarks

This is a special purpose class that supports only the "add" and "get" operations. It is designed for indexing and dictionary lookup capabilities.

Constructors

ConcurrentIndexedDictionaryTKey, TValueInitializes a new instance of the ConcurrentIndexedDictionaryTKey, TValue class

Properties

Count Gets the number of items in the dictionary.
Item Gets the value at the specified index in the dictionary.

Methods

Add Adds a key-value pair to the dictionary, and returns the index at which it was added.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Get Gets the value associated with the specified key in the dictionary.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetOrAdd Gets the value associated with the specified key from the dictionary, or adds it if not found.
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf Gets the index of the specified key in the dictionary.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also