Class CommandDefinition
Describes the lexical structure of a command.
Inheritance
System.Object
CommandDefinition
Inherited Members
System.Object.ToString()
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 sealed class CommandDefinition
Constructors
CommandDefinition(String, String, IEnumerable<CommandArgument>)
Creates a new command definition.
Declaration
public CommandDefinition(string name, string description, IEnumerable<CommandArgument> arguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the command. |
System.String | description | The human-readable description of the command. |
IEnumerable<CommandArgument> | arguments | The arguments provided. |
Properties
Arguments
Declaration
public IReadOnlyDictionary<string, CommandArgument> Arguments { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<System.String, CommandArgument> |
ArgumentsByName
Declaration
public IReadOnlyDictionary<string, CommandArgument> ArgumentsByName { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<System.String, CommandArgument> |
Description
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Declaration
public CommandType Type { get; }
Property Value
Type | Description |
---|---|
CommandType |
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()