.NET Framework Class Library |
Parser Members |
Parser Class Constructors Methods Fields Properties SeeAlso Send Feedback |
The Parser type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Parser |
Creates a new command line argument parser.
|
Methods
Name | Description | |
---|---|---|
ArgumentsUsage | Overloaded. | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetConsoleWindowWidth |
Returns the number of columns in the current console window
| |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUsageString |
A user firendly usage string describing the command line argument syntax.
| |
IndexOf |
Searches a StringBuilder for a character
| |
LastIndexOf |
Searches a StringBuilder for a character in reverse
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Parse |
Parses an argument list.
| |
ParseArguments | Overloaded. | |
ParseArgumentsWithUsage |
Parses Command Line Arguments. Displays usage message to Console.Out
if /?, /help or invalid arguments are encounterd.
Errors are output on Console.Error.
Use ArgumentAttributes to control parsing behaviour.
| |
ParseHelp |
Checks if a set of arguments asks for help.
| |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
NewLine |
The System Defined new line string.
|
Properties
Name | Description | |
---|---|---|
HasDefaultArgument |
Does this parser have a default argument.
|