C# 클래스 Crabwise.CommandWrap.SyntaxBuilder

Builds a syntactical representation of a Command object.
파일 보기 프로젝트 열기: CrabwiseStudios/CommandWrap 1 사용 예제들

공개 메소드들

메소드 설명
SyntaxBuilder ( Command command ) : System

Initializes a new instance of the SyntaxBuilder class.

ToString ( ) : string

Gets the complete syntax for the command.

The string returned by this method is equivalent to what would be entered in a command prompt.

비공개 메소드들

메소드 설명
BuildCommandFromType ( Type commandType, Command command ) : void

Recursively builds the syntax for the command.

This method recursively works its way up a Command object's inheritance hierarchy. It stops when the next base class is not a subclass of Command. This allows for nested commands to be built.

BuildSyntax ( ) : void

Checks to make sure the provided Command has a CommandSyntaxAttribute and then calls SyntaxBuilder.BuildCommandFromType

GetSyntaxAttribute ( MemberInfo memberInfo ) : SyntaxAttribute

Gets a SyntaxAttribute from a member.

메소드 상세

SyntaxBuilder() 공개 메소드

Initializes a new instance of the SyntaxBuilder class.
public SyntaxBuilder ( Command command ) : System
command Command Command from which to build the syntax.
리턴 System

ToString() 공개 메소드

Gets the complete syntax for the command.
The string returned by this method is equivalent to what would be entered in a command prompt.
public ToString ( ) : string
리턴 string