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
other
CommandInfoThe CommandInfo to compare to this instance.
Returns
- bool
true if the value of the
other
parameter is the same as this instance; otherwise, false. Ifother
is 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
obj
objectThe CommandInfo to compare to this instance.
Returns
- bool
true if
obj
is a CommandInfo and its value is the same as this instance; otherwise, false. Ifobj
is 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
left
CommandInfoThe first CommandInfo object to compare.
right
CommandInfoThe 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
left
CommandInfoThe first CommandInfo object to compare.
right
CommandInfoThe second CommandInfo object to compare.