C# Class PowerArgs.StdConsoleProvider

Used for internal implementation, but marked public for testing, please do not use. This is basically a wrapper around the system console.
Inheritance: IConsoleProvider
Afficher le fichier Open project: adamabdelhamed/PowerArgs Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
CreateKeyMap ( ) : ConsoleKeyInfo>.Dictionary
GetStdHandle ( int nStdHandle ) : IntPtr
ReadConsoleOutputCharacter ( IntPtr hConsoleOutput, [ lpCharacter, uint nLength, COORD dwReadCoord, uint &lpNumberOfCharsRead ) : bool

Method Details

Clear() public méthode

Clears the console
public Clear ( ) : void
Résultat void

Read() public méthode

Reads the next character of input from the console
public Read ( ) : int
Résultat int

ReadALineOfConsoleOutput() public static méthode

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.
Résultat string

ReadKey() public méthode

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

ReadKey() public méthode

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
Résultat System.ConsoleKeyInfo

ReadLine() public méthode

Reads a line of text from the console
public ReadLine ( ) : string
Résultat string

Write() public méthode

Writes the given character to the console
public Write ( ConsoleCharacter consoleCharacter ) : void
consoleCharacter ConsoleCharacter the character to write
Résultat void

Write() public méthode

Writes the given string to the console
public Write ( ConsoleString consoleString ) : void
consoleString ConsoleString the string to write
Résultat void

Write() public méthode

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.
Résultat void

WriteLine() public méthode

Used for internal implementation, but marked public for testing, please do not use.
public WriteLine ( ) : void
Résultat void

WriteLine() public méthode

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

WriteLine() public méthode

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.
Résultat void