Esempio n. 1
0
        public bool Remove(TKey key)
        {
            if (!ContainsKey(key))
            {
                return(false);
            }
            Removing.Execute(key, this[key]);
            bool result = m_data.Remove(key);

            Modified.Execute();
            return(result);
        }
Esempio n. 2
0
 public bool Remove(T item)
 {
     if (m_base.Contains(item))
     {
         Removing.Execute(item);
         bool result = m_base.Remove(item);
         Modified.Execute();
         return(result);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 3
0
 public T this[int index]
 {
     get
     {
         return(m_base[index]);
     }
     set
     {
         Removing.Execute(m_base[index]);
         Inserting.Execute(value);
         m_base[index] = value;
         Inserted.Execute(value);
         Modified.Execute();
     }
 }
Esempio n. 4
0
 public TValue this[TKey key]
 {
     get
     {
         return(m_data[key]);
     }
     set
     {
         if (ContainsKey(key))
         {
             Removing.Execute(key, this[key]);
             m_data.Remove(key);
         }
         Inserting.Execute(key, value);
         m_data[key] = value;
         Modified.Execute();
     }
 }
Esempio n. 5
0
 public void RemoveAt(int index)
 {
     Removing.Execute(this[index]);
     m_base.RemoveAt(index);
     Modified.Execute();
 }