Class ObservableKeyedCollectionBase<TKey, TItem\>
Last update: 16.07.2025Namespace: VM.Collections
Assembly: VM.dll
public abstract class ObservableKeyedCollectionBase<TKey, TItem> : KeyedCollection<TKey, TItem>
Type Parameters
TKey
TItem
Inheritance
object ← Collection<TItem> ← KeyedCollection<TKey, TItem> ← ObservableKeyedCollectionBase<TKey, TItem>
Constructors
ObservableKeyedCollectionBase()
protected ObservableKeyedCollectionBase()
Methods
<>OnPropertyChanged(PropertyChangedEventArgs)
protected void <>OnPropertyChanged(PropertyChangedEventArgs eventArgs)
Parameters
eventArgs PropertyChangedEventArgs
AddRange(IEnumerable<TItem>)
public void AddRange(IEnumerable<TItem> items)
Parameters
items IEnumerable<TItem>
ClearItems()
protected override void ClearItems()
InsertItem(int, TItem)
protected override void InsertItem(int index, TItem item)
Parameters
index int
item TItem
OnCollectionChanged(NotifyCollectionChangedEventArgs)
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
e NotifyCollectionChangedEventArgs
RemoveItem(int)
protected override void RemoveItem(int index)
Parameters
index int
SetItem(int, TItem)
protected override void SetItem(int index, TItem newitem)
Parameters
index int
newitem TItem
TryGetValue(TKey, out TItem)
public bool TryGetValue(TKey key, out TItem item)
Parameters
key TKey
item TItem
Returns
CollectionChanged
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
NotifyCollectionChangedEventHandler
PropertyChanged
public event PropertyChangedEventHandler PropertyChanged