C# 클래스 PowerArgs.StdConsoleProvider

Used for internal implementation, but marked public for testing, please do not use. This is basically a wrapper around the system console.
상속: IConsoleProvider
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Clears the console

Read ( ) : int

Reads the next character of input from the console

ReadALineOfConsoleOutput ( int y ) : string

Used for internal implementation, but marked public for testing, please do not use.

ReadKey ( ) : ConsoleKeyInfo

Used for internal implementation, but marked public for testing, please do not use.

ReadKey ( bool intercept ) : ConsoleKeyInfo

Reads a key from the console

ReadLine ( ) : string

Reads a line of text from the console

Write ( ConsoleCharacter consoleCharacter ) : void

Writes the given character to the console

Write ( ConsoleString consoleString ) : void

Writes the given string to the console

Write ( object output ) : void

Used for internal implementation, but marked public for testing, please do not use.

WriteLine ( ) : void

Used for internal implementation, but marked public for testing, please do not use.

WriteLine ( ConsoleString consoleString ) : void

Writes the given string to the console, followed by a newline

WriteLine ( object output ) : void

Used for internal implementation, but marked public for testing, please do not use.

비공개 메소드들

메소드 설명
CreateKeyMap ( ) : ConsoleKeyInfo>.Dictionary
GetStdHandle ( int nStdHandle ) : IntPtr
ReadConsoleOutputCharacter ( IntPtr hConsoleOutput, [ lpCharacter, uint nLength, COORD dwReadCoord, uint &lpNumberOfCharsRead ) : bool

메소드 상세

Clear() 공개 메소드

Clears the console
public Clear ( ) : void
리턴 void

Read() 공개 메소드

Reads the next character of input from the console
public Read ( ) : int
리턴 int

ReadALineOfConsoleOutput() 공개 정적인 메소드

Used for internal implementation, but marked public for testing, please do not use.
public static ReadALineOfConsoleOutput ( int y ) : string
y int Used for internal implementation, but marked public for testing, please do not use.
리턴 string

ReadKey() 공개 메소드

Used for internal implementation, but marked public for testing, please do not use.
public ReadKey ( ) : ConsoleKeyInfo
리턴 System.ConsoleKeyInfo

ReadKey() 공개 메소드

Reads a key from the console
public ReadKey ( bool intercept ) : ConsoleKeyInfo
intercept bool if true, intercept the key before it is shown on the console
리턴 System.ConsoleKeyInfo

ReadLine() 공개 메소드

Reads a line of text from the console
public ReadLine ( ) : string
리턴 string

Write() 공개 메소드

Writes the given character to the console
public Write ( ConsoleCharacter consoleCharacter ) : void
consoleCharacter ConsoleCharacter the character to write
리턴 void

Write() 공개 메소드

Writes the given string to the console
public Write ( ConsoleString consoleString ) : void
consoleString ConsoleString the string to write
리턴 void

Write() 공개 메소드

Used for internal implementation, but marked public for testing, please do not use.
public Write ( object output ) : void
output object Used for internal implementation, but marked public for testing, please do not use.
리턴 void

WriteLine() 공개 메소드

Used for internal implementation, but marked public for testing, please do not use.
public WriteLine ( ) : void
리턴 void

WriteLine() 공개 메소드

Writes the given string to the console, followed by a newline
public WriteLine ( ConsoleString consoleString ) : void
consoleString ConsoleString the string to write
리턴 void

WriteLine() 공개 메소드

Used for internal implementation, but marked public for testing, please do not use.
public WriteLine ( object output ) : void
output object Used for internal implementation, but marked public for testing, please do not use.
리턴 void