ArrayDictionary4<K, V> Class

Summary

Transparent activatable IDictionary implementation.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Collections
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IDictionary<K, V>"] Type-.->Interface1["IActivatable"] click Interface1 "/db4o-gpl-doc/output/api/Db4objects.Db4o.TA/IActivatable" Type["ArrayDictionary4<K, V>"] class Type type-node

Syntax

[Obsolete("Use Db4objects.Db4o.Collections.ActivatableDictionary instead")]
public class ArrayDictionary4<K, V> : IDictionary<K, V>, IActivatable

Remarks

Transparent activatable IDictionary implementation. Implements IDictionary interface using two arrays to store keys and values.

When instantiated as a result of a query, all the internal members are NOT activated at all. When internal members are required to perform an operation, the instance transparently activates all the members.

Attributes

Type Description
ObsoleteAttribute

Type Parameters

Name Description
K
V

Constructors

Name Summary
ArrayDictionary4() Initializes a new collection with the initial capacity = 16.
ArrayDictionary4(int) Initializes a collection of the specified initial capacity.

Properties

Name Value Summary
Count int
Returns the number of elements in the collection.
IsReadOnly bool
Keys ICollection<K>
this[K] V
Values ICollection<V>
Returns the values of the collection.

Methods

Name Value Summary
Activate(ActivationPurpose) void
activate basic implementation.
Add(K, V) void
Bind(IActivator) void
bind basic implementation.
Clear() void
System.Collections.Generic.IDictionary implementation but transparently activates the members as required.
ContainsKey(K) bool
GetEnumerator() IEnumerator<KeyValuePair<K, V>>
GetHashCode() int
Returns the hash code of the collection.
Remove(K) bool
TryGetValue(K, V) bool

See Also

  • System.Collections.Generic.IDictionary
  • Db4objects.Db4o.TA.IActivatable