C# Class PoshCode.Native.NativeConsole

A wrapper around AllocConsole, with some nice eventing to handle
Inheritance: IDisposable
显示文件 Open project: Jaykul/PoshConsole Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Implement IDisposable Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

NativeConsole ( ) : System

Creates and initializes a new instance of the NativeConsole class.

NativeConsole ( bool initialize ) : System

Creates and a new instance of the NativeConsole class and optionally initializes it.

SendCtrlBreak ( ) : void
SendCtrlC ( ) : void
WriteInput ( string input ) : void

Writes the input.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Handles actual cleanup actions, under two different scenarios

ErrorThread ( ) : void

The ErrorThread ThreadStart delegate

Initialize ( ) : bool
OutputThread ( ) : void

The OutputThread ThreadStart delegate

Method Details

Dispose() public method

Implement IDisposable Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

NativeConsole() public method

Creates and initializes a new instance of the NativeConsole class.
public NativeConsole ( ) : System
return System

NativeConsole() public method

Creates and a new instance of the NativeConsole class and optionally initializes it.
public NativeConsole ( bool initialize ) : System
initialize bool Whether to initialize the console or not
return System

SendCtrlBreak() public static method

public static SendCtrlBreak ( ) : void
return void

SendCtrlC() public static method

public static SendCtrlC ( ) : void
return void

WriteInput() public method

Writes the input.
public WriteInput ( string input ) : void
input string The input.
return void