C# Class Tectil.NCommand.CommandParser

Parses as string and constructs an expression tree.
Inheritance: ICommandParser
显示文件 Open project: tectil/NCommand

Public Methods

Method Description
CommandParser ( ParserNotation notation ) : System.Collections.Generic

Initializes a new instance of the CommandParser class.

Parse ( string command ) : object>>.IEnumerable

Default implementation. Command format is "commandname /parameter:valueWithSpaceAllowed /parameter:valueWithSpaceAllowed" Case is ignored If command can not be parsed, null is returned.

Method Details

CommandParser() public method

Initializes a new instance of the CommandParser class.
public CommandParser ( ParserNotation notation ) : System.Collections.Generic
notation ParserNotation The notation.
return System.Collections.Generic

Parse() public method

Default implementation. Command format is "commandname /parameter:valueWithSpaceAllowed /parameter:valueWithSpaceAllowed" Case is ignored If command can not be parsed, null is returned.
public Parse ( string command ) : object>>.IEnumerable
command string
return object>>.IEnumerable