ArgumentProvider Class

A source of arguments for the CommandLineParser.

Definition

Namespace: Ookii.CommandLine.Support
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public abstract class ArgumentProvider
Inheritance
Object    ArgumentProvider
Derived

Remarks

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

Constructors

ArgumentProvider Initializes a new instance of the ArgumentProvider class.

Properties

ApplicationFriendlyName Gets the friendly name of the application.
ArgumentsType Gets the type that will hold the argument values.
Description Gets a description that is used when generating usage information.
IsCommand Gets a value that indicates whether this arguments type is a subcommand.
Kind Gets the kind of argument provider.
OptionsAttribute Gets the ParseOptionsAttribute that was applied to the arguments type.

Methods

CreateInstance Creates an instance of the arguments type.
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)
GetArguments Gets the arguments defined by the arguments type.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RunValidators Runs the class validators for the arguments type.
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