Class CommandDefinition
Describes the lexical structure of a command.
Inheritance
CommandDefinition
Assembly: Petabridge.Cmd.Common.dll
Syntax
public sealed class CommandDefinition : INoSerializationVerificationNeeded
Constructors
CommandDefinition(string, string, IEnumerable<CommandArgument>)
Creates a new command definition.
Declaration
public CommandDefinition(string name, string description, IEnumerable<CommandArgument> arguments)
Parameters
Properties
Arguments
Declaration
public IReadOnlyDictionary<string, CommandArgument> Arguments { get; }
Property Value
ArgumentsByName
Declaration
public IReadOnlyDictionary<string, CommandArgument> ArgumentsByName { get; }
Property Value
Description
Declaration
public string Description { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
Type
Declaration
public CommandType Type { get; }
Property Value
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Implements
Extension Methods