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); }
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); } }
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(); } }
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(); } }
public void RemoveAt(int index) { Removing.Execute(this[index]); m_base.RemoveAt(index); Modified.Execute(); }