Click or drag to resize
Parser Class
Provides methods to parse command line arguments.
Inheritance Hierarchy
SystemObject
  X3Platform.CommandLineParser

Namespace: X3Platform.CommandLine
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public sealed class Parser : IDisposable

The Parser type exposes the following members.

Constructors
  NameDescription
Public methodParser
Initializes a new instance of the Parser class.
Public methodParser(ActionParserSettings)
Initializes a new instance of the Parser class, configurable with ParserSettings using a delegate.
Public methodParser(ParserSettings) Obsolete.
Initializes a new instance of the Parser class, configurable with a ParserSettings object.
Top
Methods
  NameDescription
Public methodDispose
Frees resources owned by the instance.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodParseArguments(String, Object)
Parses a String array of command line arguments, setting values in options parameter instance's public fields decorated with appropriate attributes.
Public methodParseArguments(String, Object, ActionString, Object)
Parses a String array of command line arguments with verb commands, setting values in options parameter instance's public fields decorated with appropriate attributes. This overload supports verb commands.
Public methodParseArgumentsStrict(String, Object, Action)
Parses a String array of command line arguments, setting values in options parameter instance's public fields decorated with appropriate attributes. If parsing fails, the method invokes the onFail delegate, if null exits with DefaultExitCodeFail.
Public methodParseArgumentsStrict(String, Object, ActionString, Object, Action)
Parses a String array of command line arguments with verb commands, setting values in options parameter instance's public fields decorated with appropriate attributes. If parsing fails, the method invokes the onFail delegate, if null exits with DefaultExitCodeFail. This overload supports verb commands.
Public methodToString (Inherited from Object.)
Top
Fields
Properties
  NameDescription
Public propertyStatic memberDefault
Gets the singleton instance created with basic defaults.
Public propertySettings
Gets the instance that implements ParserSettings in use.
Top
See Also