Table of Contents

Class ArgumentDescriptors

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

The readonly ArgumentDescriptor keyed collection.

public sealed class ArgumentDescriptors : IReadOnlyCollection<ArgumentDescriptor>, IEnumerable<ArgumentDescriptor>, IEnumerable
Inheritance
ArgumentDescriptors
Implements
Inherited Members

Constructors

ArgumentDescriptors(ITerminalTextHandler, IEnumerable<ArgumentDescriptor>)

Initializes a new instance.

public ArgumentDescriptors(ITerminalTextHandler textHandler, IEnumerable<ArgumentDescriptor> arguments)

Parameters

textHandler ITerminalTextHandler
arguments IEnumerable<ArgumentDescriptor>

Properties

Count

The argument descriptor count.

public int Count { get; }

Property Value

int

this[int]

Gets the argument descriptor by its index.

public ArgumentDescriptor this[int index] { get; }

Parameters

index int

The argument index.

Property Value

ArgumentDescriptor

this[string]

Gets the argument descriptor by its id.

public ArgumentDescriptor this[string id] { get; }

Parameters

id string

The argument descriptor identifier.

Property Value

ArgumentDescriptor

TextHandler

The text handler.

public ITerminalTextHandler TextHandler { get; }

Property Value

ITerminalTextHandler

Methods

GetEnumerator()

public IEnumerator<ArgumentDescriptor> GetEnumerator()

Returns

IEnumerator<ArgumentDescriptor>