C# Class NanoByte.Common.Arguments

An immutable class representing command-line arguments passed to an application.
显示文件 Open project: nano-byte/common

Public Methods

Method Description
Arguments ( [ args ) : System

Creates a new arguments instance based on the argument array from a Main method.

Contains ( string command ) : bool

Determines whether a specific command is contained in the arguments.

ToString ( ) : string

Returns the arguments stored in this instance.

Private Methods

Method Description
IsCommand ( string value ) : bool
this ( [ command ) : string

Method Details

Arguments() public method

Creates a new arguments instance based on the argument array from a Main method.
public Arguments ( [ args ) : System
args [ The array of arguments.
return System

Contains() public method

Determines whether a specific command is contained in the arguments.
public Contains ( string command ) : bool
command string The command to check for.
return bool

ToString() public method

Returns the arguments stored in this instance.
public ToString ( ) : string
return string