Esempio n. 1
0
 public TValue this[CompositeKey <TPrimaryKey, TSecondaryKey> key]
 {
     get { return(Get(key)); }
 }
Esempio n. 2
0
 public void Put(CompositeKey <TPrimaryKey, TSecondaryKey> key, TValue value)
 {
     Put(key.Primary, key.Secondary, value);
 }
Esempio n. 3
0
 public TValue Get(CompositeKey <TPrimaryKey, TSecondaryKey> key)
 {
     return(Get(key.Primary, key.Secondary));
 }
Esempio n. 4
0
 public bool ContainsEntry(CompositeKey <TPrimaryKey, TSecondaryKey> key, TValue value)
 {
     return(ContainsEntry(key.Primary, key.Secondary, value));
 }
Esempio n. 5
0
 public bool ContainsKey(CompositeKey <TPrimaryKey, TSecondaryKey> key)
 {
     return(ContainsKey(key.Primary, key.Secondary));
 }
 public bool Remove(CompositeKey <TPrimaryKey, TSecondaryKey> key)
 {
     throw new InvalidOperationException("Operation is not supported");
 }
 public void Put(CompositeKey <TPrimaryKey, TSecondaryKey> key, TValue value)
 {
     throw new InvalidOperationException("Operation is not supported");
 }
 /// <summary>
 /// Puts value into builded composite dictionary.
 /// </summary>
 /// <param name="key">Composite key</param>
 /// <param name="value">Value</param>
 /// <returns>Builder instance</returns>
 public ImmutableCompositeDictionaryBuilder <TPk, TSk, TV> Put(CompositeKey <TPk, TSk> key, TV value)
 {
     return(Put(key.Primary, key.Secondary, value));
 }