Class Command
A command to be sent to the server for processing
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Petabridge.Cmd
Assembly: cs.temp.dll.dll
Syntax
public class Command
Constructors
Command(String, String, IEnumerable<Tuple<String, String>>)
Creates a new instance of a command for processing.
Declaration
public Command(string module, string name, IEnumerable<Tuple<string, string>> arguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | module | The module (or palette) that defines this command. |
System.String | name | The command name itself. |
IEnumerable<Tuple<System.String, System.String>> | arguments | The set of provided arguments. |
Fields
Empty
Special case for unparseable commands
Declaration
public static readonly Command Empty
Field Value
Type | Description |
---|---|
Command |
Properties
Arguments
The set of arguments associated with this command.
Declaration
public IReadOnlyList<Tuple<string, string>> Arguments { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Tuple<System.String, System.String>> |
Module
The name of the command palette for this argument.
Declaration
public string Module { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
The name of the command being executed.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
ToString(Boolean)
Declaration
public string ToString(bool includeArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | includeArgs |
Returns
Type | Description |
---|---|
System.String |