Table of Contents

Class KeyAsIdCollection<TItem>

Namespace
OneImlx.Terminal.Commands
Assembly
OneImlx.Terminal.dll

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>
KeyAsIdCollection<TItem>
Implements
IList<TItem>
Inherited Members

Constructors

KeyAsIdCollection(ITerminalTextHandler)

Initialize a new instance.

public KeyAsIdCollection(ITerminalTextHandler textHandler)

Parameters

textHandler ITerminalTextHandler

The text handler.

Methods

GetKeyForItem(TItem)

Gets the key for the item.

protected override string GetKeyForItem(TItem item)

Parameters

item TItem

The item.

Returns

string