Class KeyAsIdCollection<TItem>
A keyed collection by id.
public class KeyAsIdCollection<TItem> : KeyedCollection<string, TItem>, IList<TItem>, ICollection<TItem>, IReadOnlyList<TItem>, IReadOnlyCollection<TItem>, IEnumerable<TItem>, IList, ICollection, IEnumerable where TItem : IKeyAsId
Type Parameters
TItem
The collection item type.
- Inheritance
-
Collection<TItem>KeyedCollection<string, TItem>KeyAsIdCollection<TItem>
- Implements
-
IList<TItem>ICollection<TItem>IReadOnlyList<TItem>IReadOnlyCollection<TItem>IEnumerable<TItem>
- Inherited Members
Constructors
KeyAsIdCollection(ITerminalTextHandler)
Initialize a new instance.
public KeyAsIdCollection(ITerminalTextHandler textHandler)
Parameters
textHandler
ITerminalTextHandlerThe text handler.
Methods
GetKeyForItem(TItem)
Gets the key for the item.
protected override string GetKeyForItem(TItem item)
Parameters
item
TItemThe item.