Class CommandInfo
Represents the information about a command.
public abstract class CommandInfo : IEquatable<CommandInfo>
- Inheritance
-
CommandInfo
- Implements
- Derived
- Inherited Members
Properties
CommandIdentifier
Gets the unique identifier for this command within the scope of its protocol definition
public abstract string CommandIdentifier { get; }
Property Value
Methods
Equals(CommandInfo?)
Determines whether this instance and another specified CommandInfo object have the same value.
public bool Equals(CommandInfo? other)
Parameters
otherCommandInfoThe CommandInfo to compare to this instance.
Returns
- bool
true if the value of the
otherparameter is the same as this instance; otherwise, false. Ifotheris null, the method returns false.
Equals(object?)
Determines whether this instance and a specified object, which must also be a CommandInfo object, have the same value.
public override bool Equals(object? obj)
Parameters
objobjectThe CommandInfo to compare to this instance.
Returns
- bool
true if
objis a CommandInfo and its value is the same as this instance; otherwise, false. Ifobjis null, the method returns false.
GetHashCode()
Returns the hash code for this CommandInfo object.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer hash code.
Operators
operator ==(CommandInfo?, CommandInfo?)
Determines whether two specified CommandInfo objects have the same value.
public static bool operator ==(CommandInfo? left, CommandInfo? right)
Parameters
leftCommandInfoThe first CommandInfo object to compare.
rightCommandInfoThe second CommandInfo object to compare.
Returns
operator !=(CommandInfo?, CommandInfo?)
Determines whether two specified CommandInfo objects have different values.
public static bool operator !=(CommandInfo? left, CommandInfo? right)
Parameters
leftCommandInfoThe first CommandInfo object to compare.
rightCommandInfoThe second CommandInfo object to compare.