Class CommandRoute
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
Properties
Id
The command route id.
public string Id { get; }
Property Value
Raw
The raw command string.
public string Raw { get; }
Property Value
Methods
Equals(CommandRoute?)
public bool Equals(CommandRoute? other)
Parameters
other
CommandRoute
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(CommandRoute?, CommandRoute?)
public static bool operator ==(CommandRoute? left, CommandRoute? right)
Parameters
left
CommandRouteright
CommandRoute
Returns
operator !=(CommandRoute?, CommandRoute?)
public static bool operator !=(CommandRoute? left, CommandRoute? right)
Parameters
left
CommandRouteright
CommandRoute