GeneratedCommandInfoWithCustomParsingT Class

Represents information about a subcommand that uses the ICommandWithCustomParsing interface, determined by the source generator.

Definition

Namespace: Ookii.CommandLine.Support
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public class GeneratedCommandInfoWithCustomParsing<T> : GeneratedCommandInfo
where T : class, new(), ICommandWithCustomParsing
Inheritance
Object    CommandInfo    GeneratedCommandInfo    GeneratedCommandInfoWithCustomParsingT

Type Parameters

T
The command class.

Remarks

This class is used by the source generator when using the GeneratedCommandManagerAttribute attribute. It should not normally be used by other code.

Constructors

GeneratedCommandInfoWithCustomParsingT Initializes a new instance of the GeneratedCommandInfoWithCustomParsingT class.

Properties

Aliases Gets the alternative names of this command.
(Inherited from GeneratedCommandInfo)
CommandType Gets the type that implements the command.
(Inherited from CommandInfo)
Description Gets the description of the command.
(Inherited from GeneratedCommandInfo)
IsHidden Gets or sets a value that indicates whether the command is hidden from the usage help.
(Inherited from CommandInfo)
Manager Gets the CommandManager that this instance belongs to.
(Inherited from CommandInfo)
Name Gets the name of the command.
(Inherited from CommandInfo)
ParentCommandType Gets the type of the command that is the parent of this command.
(Inherited from CommandInfo)
UseCustomArgumentParsing Gets a value that indicates if the command uses custom parsing.
(Overrides GeneratedCommandInfoUseCustomArgumentParsing)

Methods

CreateInstance Creates an instance of the command type parsing the specified arguments.
(Inherited from CommandInfo)
CreateInstanceWithCustomParsing Creates an instance of a command that uses the ICommandWithCustomParsing interface.
(Overrides GeneratedCommandInfoCreateInstanceWithCustomParsing)
CreateInstanceWithResult Creates an instance of the command type by parsing the specified arguments, and returns it in addition to the result of the parsing operation.
(Inherited from CommandInfo)
CreateParser Creates a CommandLineParser instance for the type indicated by the CommandType property.
(Inherited from GeneratedCommandInfo)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MatchesName Checks whether the command's name or aliases match the specified name.
(Inherited from CommandInfo)
MatchesPrefix Checks whether the command's name or one of its aliases start with the specified prefix.
(Inherited from CommandInfo)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also