Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Util.Collections.AutoDictionary<TKey1, TKey2, TValue>

Summary

Implements a two-level AutoDictionary<TKey, TValue>.

Generic type parameters

TKey1This type parameter is not documented.
TKey2This type parameter is not documented.
TValueThis type parameter is not documented.

Constructors

AutoDictionary<TKey1, TKey2, TValue>(Func<TKey1, TKey2, TValue> initializer = null)
Constructor.
AutoDictionary<TKey1, TKey2, TValue>(IEqualityComparer<TKey1> comparer1, IEqualityComparer<TKey2> comparer2, Func<TKey1, TKey2, TValue> initializer = null)

Instance methods

void
Add(TKey1 key, AutoDictionary<TKey2, TValue> value)
Equivalent to the same method in Dictionary<TKey, TValue>.
void
bool
ContainsKey(TKey1 key)
bool
ContainsValue(AutoDictionary<TKey2, TValue> value)
Dictionary<TKey, TValue>.Enumerator
void
GetObjectData(SerializationInfo info, StreamingContext context)
void
OnDeserialization(object sender)
bool
Remove(TKey1 key)
bool
TryGetValue(TKey1 key, out TValue value)

Instance properties

IEqualityComparer<TKey1>Equivalent to the same property in Dictionary<TKey, TValue>.
int
AutoDictionary<TKey2, TValue>
this[TKey1 key]
Gets or sets the element with the specified key. When getting a key that hasn't been set before, the key is added to the dictionary with a value returned by the initializer as configured in the constructor.
Dictionary<TKey, TValue>.KeyCollectionEquivalent to the same property in Dictionary<TKey, TValue>.
Dictionary<TKey, TValue>.ValueCollection