public TValue GetOrAdd(TWeakKey1 weakKey1, TWeakKey2 weakKey2, TWeakKey3 weakKey3, TWeakKey4 weakKey4, TStrongKey strongKey, Func <TWeakKey1, TWeakKey2, TWeakKey3, TWeakKey4, TStrongKey, TValue> valueFactory) { if (null == valueFactory) { throw new ArgumentNullException("valueFactory"); } return(_internalDictionary.GetOrAdd(Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey), hr => valueFactory(hr.Item1, hr.Item2, hr.Item3, hr.Item4, hr.Item5))); }
public TValue GetOrAdd(TStrongKey strongKey, Func <TStrongKey, TValue> valueFactory) { if (null == valueFactory) { throw new ArgumentNullException("valueFactory"); } return(_internalDictionary.GetOrAdd(Stacktype.Create(strongKey), ht => valueFactory(ht.Item1))); }
public TValue AddOrUpdate(TStrongKey strongKey, TValue addValue, Func <TStrongKey, TValue, TValue> updateValueFactory) { return (_internalDictionary.AddOrUpdate( Stacktype.Create(strongKey), addValue, (ht, v) => updateValueFactory(ht.Item1, v) ) ); }
public TValue AddOrUpdate(TWeakKey1 weakKey1, TWeakKey2 weakKey2, TWeakKey3 weakKey3, TWeakKey4 weakKey4, TStrongKey strongKey, TValue addValue, Func <TWeakKey1, TWeakKey2, TWeakKey3, TWeakKey4, TStrongKey, TValue, TValue> updateValueFactory) { if (null == updateValueFactory) { throw new ArgumentNullException("updateValueFactory"); } return (_internalDictionary.AddOrUpdate( Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey), addValue, (hr, v) => updateValueFactory(hr.Item1, hr.Item2, hr.Item3, hr.Item4, hr.Item5, v) ) ); }
public TValue AddOrUpdate(TWeakKey1 weakKey, TStrongKey strongKey, Func <TWeakKey1, TStrongKey, TValue> addValueFactory, Func <TWeakKey1, TStrongKey, TValue, TValue> updateValueFactory) { if (null == addValueFactory) { throw new ArgumentNullException("addValueFactory"); } if (null == updateValueFactory) { throw new ArgumentNullException("updateValueFactory"); } return (_internalDictionary.AddOrUpdate( Stacktype.Create(weakKey, strongKey), hr => addValueFactory(hr.Item1, hr.Item2), (hr, v) => updateValueFactory(hr.Item1, hr.Item2, v) ) ); }
public TValue GetOrAdd(TStrongKey strongKey, TValue value) { return(_internalDictionary.GetOrAdd(Stacktype.Create(strongKey), value)); }
public TValue this[TStrongKey strongKey] { get { return(_internalDictionary.GetItem(Stacktype.Create(strongKey))); } set { _internalDictionary.SetItem(Stacktype.Create(strongKey), value); } }
public bool ContainsKey(TStrongKey strongKey) { return(_internalDictionary.ContainsKey(Stacktype.Create(strongKey))); }
public bool TryGetValue(TWeakKey1 weakKey, TStrongKey strongKey, out TValue value) { return(_internalDictionary.TryGetValue(Stacktype.Create(weakKey, strongKey), out value)); }
public bool TryUpdate(TStrongKey strongKey, TValue newValue, TValue comparisonValue) { return(_internalDictionary.TryUpdate(Stacktype.Create(strongKey), newValue, comparisonValue)); }
public TValue GetOrAdd(TWeakKey1 weakKey1, TWeakKey2 weakKey2, TWeakKey3 weakKey3, TWeakKey4 weakKey4, TStrongKey strongKey, TValue value) { return(_internalDictionary.GetOrAdd(Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey), value)); }
public TValue this[TWeakKey1 weakKey1, TWeakKey2 weakKey2, TWeakKey3 weakKey3, TWeakKey4 weakKey4, TStrongKey strongKey] { get { return(_internalDictionary.GetItem(Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey))); } set { _internalDictionary.SetItem(Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey), value); } }
public bool ContainsKey(TWeakKey1 weakKey1, TWeakKey2 weakKey2, TWeakKey3 weakKey3, TWeakKey4 weakKey4, TStrongKey strongKey) { return(_internalDictionary.ContainsKey(Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey))); }
public bool TryAdd(TStrongKey strongKey, TValue value) { return(_internalDictionary.TryAdd(Stacktype.Create(strongKey), value)); }
public bool TryRemove(TWeakKey1 weakKey1, TWeakKey2 weakKey2, TWeakKey3 weakKey3, TWeakKey4 weakKey4, TStrongKey strongKey, out TValue value) { return(_internalDictionary.TryRemove(Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey), out value)); }
public bool TryRemove(TStrongKey strongKey, out TValue value) { return(_internalDictionary.TryRemove(Stacktype.Create(strongKey), out value)); }
public bool TryUpdate(TWeakKey1 weakKey1, TWeakKey2 weakKey2, TWeakKey3 weakKey3, TWeakKey4 weakKey4, TStrongKey strongKey, TValue newValue, TValue comparisonValue) { return(_internalDictionary.TryUpdate(Stacktype.Create(weakKey1, weakKey2, weakKey3, weakKey4, strongKey), newValue, comparisonValue)); }
protected override bool FromInternalKeyToStackKey(StrongKey <TStrongKey> internalKey, out Stacktype <TStrongKey> externalKey) { externalKey = Stacktype.Create(internalKey._element); return(true); }
public bool TryAdd(TWeakKey1 weakKey1, TWeakKey2 weakKey2, TStrongKey strongKey, TValue value) { return(_internalDictionary.TryAdd(Stacktype.Create(weakKey1, weakKey2, strongKey), value)); }