Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class ObservableKeyedCollection<TKey, TItem\>

Last update: 16.07.2025

Namespace: VM.Collections
Assembly: VM.dll

public class ObservableKeyedCollection<TKey, TItem> : ObservableKeyedCollectionBase<TKey, TItem>

Type Parameters

TKey

TItem

Inheritance

object ← Collection<TItem> ← KeyedCollection<TKey, TItem> ← ObservableKeyedCollectionBase<TKey, TItem> ← ObservableKeyedCollection<TKey, TItem>

Inherited Members

ObservableKeyedCollectionBase<TKey, TItem>.AddRange(IEnumerable<TItem>), ObservableKeyedCollectionBase<TKey, TItem>.TryGetValue(TKey, out TItem), ObservableKeyedCollectionBase<TKey, TItem>.ClearItems(), ObservableKeyedCollectionBase<TKey, TItem>.InsertItem(int, TItem), ObservableKeyedCollectionBase<TKey, TItem>.OnCollectionChanged(NotifyCollectionChangedEventArgs), ObservableKeyedCollectionBase<TKey, TItem>.RemoveItem(int), ObservableKeyedCollectionBase<TKey, TItem>.SetItem(int, TItem), ObservableKeyedCollectionBase<TKey, TItem>.<>OnPropertyChanged(PropertyChangedEventArgs), ObservableKeyedCollectionBase<TKey, TItem>.CollectionChanged, ObservableKeyedCollectionBase<TKey, TItem>.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

ObservableKeyedCollection(Func<TItem, TKey>)

public ObservableKeyedCollection(Func<TItem, TKey> getKeyForItem)

Parameters

getKeyForItem Func<TItem, TKey>

Methods

GetKeyForItem(TItem)

protected override TKey GetKeyForItem(TItem item)

Parameters

item TItem

Returns

TKey

Connect with Ansys