Exemple #1
0
 public bool TryGetValue(TKey key, out TValue value)
 {
     return(m_tree.TryFind(ComparerNode.Create(m_comparer, key), out value));
 }
Exemple #2
0
 public ImmutableMap <TKey, TValue> Delete(TKey key)
 {
     return(new ImmutableMap <TKey, TValue>(m_comparer, m_tree.Delete(ComparerNode.Create(m_comparer, key))));
 }
Exemple #3
0
 public TValue this[TKey key]
 {
     get { return(m_tree.Find(ComparerNode.Create(m_comparer, key)).Value); }
 }
Exemple #4
0
 public ImmutableMap <TKey, TValue> Update(TKey key, TValue value)
 {
     return(new ImmutableMap <TKey, TValue>(m_comparer, m_tree.Update(ComparerNode.Create(m_comparer, key), value)));
 }
Exemple #5
0
        public bool ContainsKey(TKey key)
        {
            TValue value;

            return(m_tree.TryFind(ComparerNode.Create(m_comparer, key), out value));
        }