Table of Contents

Class CommandRoute

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

Defines a unique command route.

public sealed class CommandRoute : IEquatable<CommandRoute?>
Inheritance
CommandRoute
Implements
Inherited Members

Remarks

The CommandRoute implements IEquatable<T> with property Id.

Constructors

CommandRoute(string, string)

Initialize a new instance.

public CommandRoute(string id, string raw)

Parameters

id string

The command route identifier.

raw string

The command string.

Properties

Id

The command route id.

public string Id { get; }

Property Value

string

Raw

The raw command string.

public string Raw { get; }

Property Value

string

Methods

Equals(CommandRoute?)

public bool Equals(CommandRoute? other)

Parameters

other CommandRoute

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(CommandRoute?, CommandRoute?)

public static bool operator ==(CommandRoute? left, CommandRoute? right)

Parameters

left CommandRoute
right CommandRoute

Returns

bool

operator !=(CommandRoute?, CommandRoute?)

public static bool operator !=(CommandRoute? left, CommandRoute? right)

Parameters

left CommandRoute
right CommandRoute

Returns

bool