IDictionary<TKey,TValue> Interface

Represents a generic collection of key/value pairs.

Namespace: Spring.Collections
type
 IDictionary<TKey, TValue> = interface(IMap<TKey, TValue>)
 ['{7F0D544F-6A59-4FA0-9C96-DB09029CC835}']
 end;

Type Parameters

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

The IDictionary<TKey,TValue> type exposes the following members.

Show:
 NameDescription
Comparer

Gets the assigned comparer. If not comparer was assigned it returns the default comparer. (Inherited from IEnumerable<T>.)

Count

Returns the number of elements in a sequence. (Inherited from IEnumerable.)

ElementType

Returns the type of the elements in the sequence. (Inherited from IEnumerable.)

IsEmpty

Determines whether the sequence contains no elements. (Inherited from IEnumerable.)

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<T>.)

Items[TKey]

Gets or sets the element with the specified key.

Keys

Gets an IReadOnlyCollection<T> containing the keys of the IMap<TKey, TValue>. (Inherited from IMap<TKey,TValue>.)

KeyType

Represents property KeyType. (Inherited from IMap<TKey,TValue>.)

OnChanged

Represents property OnChanged. (Inherited from ICollection<T>.)

OnKeyChanged

Represents property OnKeyChanged. (Inherited from IMap<TKey,TValue>.)

OnValueChanged

Represents property OnValueChanged. (Inherited from IMap<TKey,TValue>.)

Values

Gets an IReadOnlyCollection<T> containing the values in the IMap<TKey, TValue>. (Inherited from IMap<TKey,TValue>.)

ValueType

Represents property ValueType. (Inherited from IMap<TKey,TValue>.)

Top
Show:
 NameDescription
Add(TKey,TValue)

Overloaded. Adds an element with the provided key and value to the IMap<TKey,TValue>. (Inherited from IMap<TKey,TValue>.)

AddOrSetValue(TKey,TValue)

Adds an element with the provided key and value to the IDictionary<TKey,TValue>. If it already exists in the dictionary the provided value for the specified key is set.

AddRange(IEnumerable<T>)

Overloaded. Represents method AddRange(IEnumerable<T>). (Inherited from ICollection<T>.)

AddRange(T[])

Overloaded. Represents method AddRange(T[]). (Inherited from ICollection<T>.)

Aggregate(TFunc)

Applies an accumulator function over a sequence. (Inherited from IEnumerable<T>.)

All(TPredicate<T>)

Determines whether all elements of a sequence satisfy a condition. (Inherited from IEnumerable<T>.)

Any

Overloaded. Determines whether a sequence contains any elements. (Inherited from IEnumerable<T>.)

Any(TPredicate<T>)

Overloaded. Determines whether any element of a sequence satisfies a condition. (Inherited from IEnumerable<T>.)

AsObject

Returns the reference to this instance. (Inherited from IEnumerable.)

AsReadOnlyDictionary

Returns the dictionary as read-only dictionary.

Clear

Removes all items from the ICollection<T>. (Inherited from ICollection<T>.)

Concat(IEnumerable<T>)

Overloaded. Concatenates two sequences. (Inherited from IEnumerable<T>.)

Contains(T)

Overloaded. Determines whether a sequence contains a specified element by using the default equality comparer. (Inherited from IEnumerable<T>.)

Contains(T,IEqualityComparer)

Overloaded. Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>. (Inherited from IEnumerable<T>.)

Contains(T,TEqualityComparison)

Overloaded. Represents method Contains(T,TEqualityComparison). (Inherited from IEnumerable<T>.)

Contains(TKey,TValue)

Determines whether the IMap<TKey,TValue> contains the specified key/value pair. (Inherited from IMap<TKey,TValue>.)

ContainsKey(TKey)

Determines whether the IMap<TKey, TValue> contains an element with the specified key. (Inherited from IMap<TKey,TValue>.)

ContainsValue(TValue)

Determines whether the IMap<TKey, TValue> contains an element with the specified value. (Inherited from IMap<TKey,TValue>.)

CopyTo(TArray,Integer)

Copies the elements of the ICollection<T> to an array, starting at a particular array index. (Inherited from ICollection<T>.)

ElementAt(Integer)

Returns the element at a specified index in a sequence. (Inherited from IEnumerable<T>.)

ElementAtOrDefault(Integer)

Overloaded. Returns the element at a specified index in a sequence or a default value if the index is out of range. (Inherited from IEnumerable<T>.)

ElementAtOrDefault(Integer,T)

Overloaded. Returns the element at a specified index in a sequence or the specified default value if the index is out of range. (Inherited from IEnumerable<T>.)

EqualsTo(IEnumerable<T>)

Overloaded. Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. (Inherited from IEnumerable<T>.)

EqualsTo(IEnumerable<T>,IEqualityComparer)

Overloaded. Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparer<T>. (Inherited from IEnumerable<T>.)

EqualsTo(T[])

Overloaded. Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. (Inherited from IEnumerable<T>.)

Extract(TKey)

Overloaded. Removes the value for a specified key without triggering lifetime management for objects.

ExtractAll(TPredicate<T>)

Represents method ExtractAll(TPredicate<T>). (Inherited from ICollection<T>.)

ExtractPair(TKey)

Overloaded. Removes the value for a specified key without triggering lifetime management for objects.

ExtractRange(IEnumerable<T>)

Overloaded. Represents method ExtractRange(IEnumerable<T>). (Inherited from ICollection<T>.)

ExtractRange(T[])

Overloaded. Represents method ExtractRange(T[]). (Inherited from ICollection<T>.)

First

Overloaded. Returns the first element of a sequence. (Inherited from IEnumerable<T>.)

First(TPredicate<T>)

Overloaded. Returns the first element in a sequence that satisfies a specified condition. (Inherited from IEnumerable<T>.)

FirstOrDefault

Overloaded. Returns the first element of a sequence, or a default value if the sequence contains no elements. (Inherited from IEnumerable<T>.)

FirstOrDefault(T)

Overloaded. Returns the first element of a sequence, or the specified default value if the sequence contains no elements. (Inherited from IEnumerable<T>.)

FirstOrDefault(TPredicate<T>)

Overloaded. Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. (Inherited from IEnumerable<T>.)

FirstOrDefault(TPredicate<T>,T)

Overloaded. Returns the first element of the sequence that satisfies a condition or the specified default value if no such element is found. (Inherited from IEnumerable<T>.)

ForEach(TAction<T>)

Performs the specified action on each element of a sequence. (Inherited from IEnumerable<T>.)

GetComparer

Returns the specified comparer for this instance. (Inherited from IEnumerable<T>.)

GetCount

Represents method GetCount. (Inherited from IEnumerable.)

GetElementType

Represents method GetElementType. (Inherited from IEnumerable.)

GetEnumerator

Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<T>.)

GetIsEmpty

Represents method GetIsEmpty. (Inherited from IEnumerable.)

GetIsReadOnly

Represents method GetIsReadOnly. (Inherited from ICollection<T>.)

GetItem(TKey)

Represents method GetItem(TKey).

GetKeys

Represents method GetKeys. (Inherited from IMap<TKey,TValue>.)

GetKeyType

Represents method GetKeyType. (Inherited from IMap<TKey,TValue>.)

GetOnChanged

Represents method GetOnChanged. (Inherited from ICollection<T>.)

GetOnKeyChanged

Represents method GetOnKeyChanged. (Inherited from IMap<TKey,TValue>.)

GetOnValueChanged

Represents method GetOnValueChanged. (Inherited from IMap<TKey,TValue>.)

GetValueOrDefault(TKey)

Overloaded. Gets the value for a given key if a matching key exists in the dictionary; returns the default value otherwise.

GetValueOrDefault(TKey,TValue)

Overloaded. Gets the value for a given key if a matching key exists in the dictionary; returns the given default value otherwise.

GetValues

Represents method GetValues. (Inherited from IMap<TKey,TValue>.)

GetValueType

Represents method GetValueType. (Inherited from IMap<TKey,TValue>.)

Last

Overloaded. Returns the last element of a sequence. (Inherited from IEnumerable<T>.)

Last(TPredicate<T>)

Overloaded. Returns the last element of a sequence that satisfies a specified condition. (Inherited from IEnumerable<T>.)

LastOrDefault

Overloaded. Returns the last element of a sequence, or a default value if the sequence contains no elements. (Inherited from IEnumerable<T>.)

LastOrDefault(T)

Overloaded. Returns the last element of a sequence, or the specified default value if the sequence contains no elements. (Inherited from IEnumerable<T>.)

LastOrDefault(TPredicate<T>)

Overloaded. Returns the last element of a sequence that satisfies a condition or a default value if no such element is found. (Inherited from IEnumerable<T>.)

LastOrDefault(TPredicate<T>,T)

Overloaded. Returns the last element of a sequence that satisfies a condition or the specified default value if no such element is found. (Inherited from IEnumerable<T>.)

Max

Overloaded. Returns the maximum value in a sequence. (Inherited from IEnumerable<T>.)

Max(IComparer)

Overloaded. Returns the maximum value in a sequence by using the specified IComparer<T> . (Inherited from IEnumerable<T>.)

Max(TComparison)

Overloaded. Represents method Max(TComparison). (Inherited from IEnumerable<T>.)

Max(TFunc)

Overloaded. Represents method Max(TFunc). (Inherited from IEnumerable<T>.)

Min

Overloaded. Returns the minimum value in a sequence. (Inherited from IEnumerable<T>.)

Min(IComparer)

Overloaded. Returns the minimum value in a sequence by using the specified IComparer<T> . (Inherited from IEnumerable<T>.)

Min(TComparison)

Overloaded. Represents method Min(TComparison). (Inherited from IEnumerable<T>.)

Min(TFunc)

Overloaded. Represents method Min(TFunc). (Inherited from IEnumerable<T>.)

MoveTo(ICollection<T>)

Overloaded. Moves the elements of the ICollection<T> to the specified collection. (Inherited from ICollection<T>.)

MoveTo(ICollection<T>,TPredicate<T>)

Overloaded. Moves the elements of the ICollection<T> that are matching the specified predicate to the specified collection. (Inherited from ICollection<T>.)

Ordered

Overloaded. Sorts the elements of a sequence in ascending order using the default comparer for their type. (Inherited from IEnumerable<T>.)

Ordered(IComparer)

Overloaded. Sorts the elements of a sequence in ascending order using the specified IComparer<T>. (Inherited from IEnumerable<T>.)

Ordered(TComparison)

Overloaded. Represents method Ordered(TComparison). (Inherited from IEnumerable<T>.)

Remove(TKey)

Overloaded. Removes the element with the specified key from the IMap<TKey, TValue>. (Inherited from IMap<TKey,TValue>.)

Remove(TKey,TValue)

Overloaded. Removes the specified key/value pair from the IMap<TKey, TValue>. (Inherited from IMap<TKey,TValue>.)

RemoveAll(TPredicate<T>)

Represents method RemoveAll(TPredicate<T>). (Inherited from ICollection<T>.)

RemoveRange(IEnumerable<T>)

Overloaded. Represents method RemoveRange(IEnumerable<T>). (Inherited from ICollection<T>.)

RemoveRange(T[])

Overloaded. Represents method RemoveRange(T[]). (Inherited from ICollection<T>.)

Reversed

Inverts the order of the elements in a sequence. (Inherited from IEnumerable<T>.)

SetItem(TKey,TValue)

Represents method SetItem(TKey,TValue).

Shuffled

Returns the sequence in a shuffled order. (Inherited from IEnumerable<T>.)

Single

Overloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. (Inherited from IEnumerable<T>.)

Single(TPredicate<T>)

Overloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. (Inherited from IEnumerable<T>.)

SingleOrDefault

Overloaded. Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence. (Inherited from IEnumerable<T>.)

SingleOrDefault(T)

Overloaded. Returns the only element of a sequence, or the specified default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence. (Inherited from IEnumerable<T>.)

SingleOrDefault(TPredicate<T>)

Overloaded. Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition. (Inherited from IEnumerable<T>.)

SingleOrDefault(TPredicate<T>,T)

Overloaded. Returns the only element of a sequence that satisfies a specified condition or the specified default value if no such element exists; this method throws an exception if more than one element satisfies the condition. (Inherited from IEnumerable<T>.)

Skip(Integer)

Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Inherited from IEnumerable<T>.)

SkipWhile(TFunc)

Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. (Inherited from IEnumerable<T>.)

SkipWhile(TPredicate<T>)

Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. (Inherited from IEnumerable<T>.)

Sum

Overloaded. Computes the sum of the sequence. (Inherited from IEnumerable<T>.)

Take(Integer)

Returns a specified number of contiguous elements from the start of a sequence. (Inherited from IEnumerable<T>.)

TakeWhile(TFunc)

Overloaded. Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function. (Inherited from IEnumerable<T>.)

TakeWhile(TPredicate<T>)

Overloaded. Returns elements from a sequence as long as a specified condition is true. (Inherited from IEnumerable<T>.)

ToArray

Creates a new array which is filled with the elements in the collection. (Inherited from IEnumerable<T>.)

TryGetFirst(T)

Overloaded. Try getting the first element in a sequence. (Inherited from IEnumerable<T>.)

TryGetFirst(T,TPredicate<T>)

Overloaded. Try getting the first element in a sequence that satisfies a specified condition. (Inherited from IEnumerable<T>.)

TryGetLast(T)

Overloaded. Try getting the last element in a sequence. (Inherited from IEnumerable<T>.)

TryGetLast(T,TPredicate<T>)

Overloaded. Try getting the last element in a sequence that satisfies a specified condition. (Inherited from IEnumerable<T>.)

TryGetSingle(T)

Overloaded. Try getting the only element in a sequence. (Inherited from IEnumerable<T>.)

TryGetSingle(T,TPredicate<T>)

Overloaded. Try getting the only element in a sequence that satisfies a specified condition. (Inherited from IEnumerable<T>.)

TryGetValue(TKey,TValue)

Gets the value associated with the specified key.

Where(TPredicate<T>)

Overloaded. Filters a sequence of values based on a predicate. (Inherited from IEnumerable<T>.)

Top