[]
Represents an OwnedCollection<TItem> of uniquely elements, each element should have unique key.
public abstract class OwnedKeyedCollection<TKey, TItem> : OwnedCollection<TItem>, IList<TItem>, ICollection<TItem>, IReadOnlyList<TItem>, IReadOnlyCollection<TItem>, IEnumerable<TItem>, IOwnedObject, IList, ICollection, IEnumerable where TItem : IOwnedObject
Public MustInherit Class OwnedKeyedCollection(Of TKey, TItem As IOwnedObject)
Inherits OwnedCollection(Of TItem)
Implements IList(Of TItem), ICollection(Of TItem), IReadOnlyList(Of TItem), IReadOnlyCollection(Of TItem), IEnumerable(Of TItem), IOwnedObject, IList, ICollection, IEnumerable
Name | Description |
---|---|
TKey | The type of keys in the collection. |
TItem | The type of items in the collection. |
Name | Description |
---|---|
OwnedKeyedCollection() |
Name | Description |
---|---|
CheckKey(TItem, TKey, TKey) | Throws an exception if collection already contains item with specified key. |
ClearItems() | |
GetKeyForItem(TItem) | When implemented in a derived class, extracts the key from the specified element. |
IndexOfKey(TKey) | Returns the 0-based index of a |
InsertItem(int, TItem) | |
RemoveItem(int) | |
SetItem(int, TItem) | |
TryGetValue(TKey, out TItem) | Get an item with specified key. |