Version 3.0.0.2

DoubleLookupDictionary<TFirstKey, TSecondKey, TValue> class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public class DoubleLookupDictionary<TFirstKey, TSecondKey, TValue> : Dictionary<TFirstKey, Dictionary<TSecondKey, TValue>>, IDictionary<TFirstKey, Dictionary<TSecondKey, TValue>>, ICollection<KeyValuePair<TFirstKey, Dictionary<TSecondKey, TValue>>>, IDictionary, ICollection, IReadOnlyDictionary<TFirstKey, Dictionary<TSecondKey, TValue>>, IReadOnlyCollection<KeyValuePair<TFirstKey, Dictionary<TSecondKey, TValue>>>, IEnumerable<KeyValuePair<TFirstKey, Dictionary<TSecondKey, TValue>>>, IEnumerable, ISerializable, IDeserializationCallback
Inheritance
  • System.Object
  • System.Collections.Generic.Dictionary<TFirstKey, System.Collections.Generic.Dictionary<TSecondKey, TValue>>
  • DoubleLookupDictionary<TFirstKey, TSecondKey, TValue>

Type Parameters

TFirstKey

TSecondKey

TValue

Constructors

DoubleLookupDictionary()
public DoubleLookupDictionary()
DoubleLookupDictionary(IEqualityComparer<TFirstKey>, IEqualityComparer<TSecondKey>)
public DoubleLookupDictionary(IEqualityComparer<TFirstKey> firstKeyComparer, IEqualityComparer<TSecondKey> secondKeyComparer)
Parameters
System.Collections.Generic.IEqualityComparer<TFirstKey> firstKeyComparer

System.Collections.Generic.IEqualityComparer<TSecondKey> secondKeyComparer

Properties

Item[TFirstKey]
public Dictionary<TSecondKey, TValue> this[TFirstKey firstKey] { get; }
Parameters
TFirstKey firstKey

Methods

AddInner(TFirstKey, TSecondKey, TValue)
public TValue AddInner(TFirstKey firstKey, TSecondKey secondKey, TValue value)
Parameters
TFirstKey firstKey

TSecondKey secondKey

TValue value

Returns
TValue

ContainsKeys(TFirstKey, TSecondKey)
public bool ContainsKeys(TFirstKey firstKey, TSecondKey secondKey)
Parameters
TFirstKey firstKey

TSecondKey secondKey

Returns
System.Boolean

InnerCount(TFirstKey)
public int InnerCount(TFirstKey firstKey)
Parameters
TFirstKey firstKey

Returns
System.Int32

RemoveInner(TFirstKey, TSecondKey)
public bool RemoveInner(TFirstKey firstKey, TSecondKey secondKey)
Parameters
TFirstKey firstKey

TSecondKey secondKey

Returns
System.Boolean

RemoveWhere(Func<TValue, Boolean>)
public void RemoveWhere(Func<TValue, bool> predicate)
Parameters
System.Func<TValue, System.Boolean> predicate

TotalInnerCount()
public int TotalInnerCount()
Returns
System.Int32

TryGetInnerValue(TFirstKey, TSecondKey, out TValue)
public bool TryGetInnerValue(TFirstKey firstKey, TSecondKey secondKey, out TValue value)
Parameters
TFirstKey firstKey

TSecondKey secondKey

TValue value

Returns
System.Boolean

Extension Methods