C# 클래스 llbc.SafeConsole

The safe console class simple encapsulation.
파일 보기 프로젝트 열기: lailongwei/llbc 1 사용 예제들

공개 메소드들

메소드 설명
Flush ( ) : void

Flush all standard output buffer to console.

FlushError ( ) : void

Flush all standard error buffer to console.

Read ( ) : int

Read next character from input stream.

wrapped from Console.Read() method

ReadKey ( ) : ConsoleKeyInfo

Get user press key info.

wrapped from Console.ReadKey() method

ReadKey ( bool intercept ) : ConsoleKeyInfo

Read user press key info.

ResetColor ( ) : void

Reset console color.

Trace ( string msg ) : void

Trace message, only output when enabled LLBC_DEBUG macro in llbc core library.

Write ( bool value ) : void

Write bool value to standard output console.

Write ( char value ) : void

Write char value to standard output console.

Write ( object value ) : void

Write object value to standard output console.

Write ( string fmt ) : void

Format output specific datas to standard output console.

WriteError ( bool value ) : void

Write bool value to standard error console.

WriteError ( char value ) : void

Write char value to standard error console.

WriteError ( object value ) : void

Write object value to standard error console.

WriteError ( string fmt ) : void

Format output specific datas to standard error console.

WriteErrorLine ( bool value ) : void

Write bool value to standard error console and append LF character.

WriteErrorLine ( char value ) : void

Write char value to standard error console and append LF character.

WriteErrorLine ( object value ) : void

Write object value to standard error console and append LF character.

WriteErrorLine ( string fmt ) : void

Format output specific datas to standard error console and append LF character.

WriteLine ( bool value ) : void

Write bool value to standard output console and append LF character.

WriteLine ( char value ) : void

Write char value to standard output console and append LF character.

WriteLine ( object value ) : void

Write object value to standard output console and append LF character.

WriteLine ( string fmt ) : void

Format output specific datas to standard output console and append LF character.

_Write ( bool toStdout, bool newLine, string fmt ) : void

비공개 메소드들

메소드 설명
_SafeOutput ( bool toStdout, bool newLine, string content ) : void
_Write ( bool toStdout, bool newLine, bool value ) : void
_Write ( bool toStdout, bool newLine, char value ) : void
_Write ( bool toStdout, bool newLine, object value ) : void

메소드 상세

Flush() 공개 정적인 메소드

Flush all standard output buffer to console.
public static Flush ( ) : void
리턴 void

FlushError() 공개 정적인 메소드

Flush all standard error buffer to console.
public static FlushError ( ) : void
리턴 void

Read() 공개 정적인 메소드

Read next character from input stream.

wrapped from Console.Read() method

public static Read ( ) : int
리턴 int

ReadKey() 공개 정적인 메소드

Get user press key info.

wrapped from Console.ReadKey() method

public static ReadKey ( ) : ConsoleKeyInfo
리턴 System.ConsoleKeyInfo

ReadKey() 공개 정적인 메소드

Read user press key info.
public static ReadKey ( bool intercept ) : ConsoleKeyInfo
intercept bool Determines whether to display the pressed key in the console window. true to not display the pressed key; otherwise, false
리턴 System.ConsoleKeyInfo

ResetColor() 공개 정적인 메소드

Reset console color.
public static ResetColor ( ) : void
리턴 void

Trace() 공개 정적인 메소드

Trace message, only output when enabled LLBC_DEBUG macro in llbc core library.
public static Trace ( string msg ) : void
msg string will trace message
리턴 void

Write() 공개 정적인 메소드

Write bool value to standard output console.
public static Write ( bool value ) : void
value bool bool value
리턴 void

Write() 공개 정적인 메소드

Write char value to standard output console.
public static Write ( char value ) : void
value char char value
리턴 void

Write() 공개 정적인 메소드

Write object value to standard output console.
public static Write ( object value ) : void
value object object value
리턴 void

Write() 공개 정적인 메소드

Format output specific datas to standard output console.
public static Write ( string fmt ) : void
fmt string format string
리턴 void

WriteError() 공개 정적인 메소드

Write bool value to standard error console.
public static WriteError ( bool value ) : void
value bool bool value
리턴 void

WriteError() 공개 정적인 메소드

Write char value to standard error console.
public static WriteError ( char value ) : void
value char char value
리턴 void

WriteError() 공개 정적인 메소드

Write object value to standard error console.
public static WriteError ( object value ) : void
value object object value
리턴 void

WriteError() 공개 정적인 메소드

Format output specific datas to standard error console.
public static WriteError ( string fmt ) : void
fmt string format string
리턴 void

WriteErrorLine() 공개 정적인 메소드

Write bool value to standard error console and append LF character.
public static WriteErrorLine ( bool value ) : void
value bool bool value
리턴 void

WriteErrorLine() 공개 정적인 메소드

Write char value to standard error console and append LF character.
public static WriteErrorLine ( char value ) : void
value char char value
리턴 void

WriteErrorLine() 공개 정적인 메소드

Write object value to standard error console and append LF character.
public static WriteErrorLine ( object value ) : void
value object object value
리턴 void

WriteErrorLine() 공개 정적인 메소드

Format output specific datas to standard error console and append LF character.
public static WriteErrorLine ( string fmt ) : void
fmt string format string
리턴 void

WriteLine() 공개 정적인 메소드

Write bool value to standard output console and append LF character.
public static WriteLine ( bool value ) : void
value bool bool value
리턴 void

WriteLine() 공개 정적인 메소드

Write char value to standard output console and append LF character.
public static WriteLine ( char value ) : void
value char char value
리턴 void

WriteLine() 공개 정적인 메소드

Write object value to standard output console and append LF character.
public static WriteLine ( object value ) : void
value object object value
리턴 void

WriteLine() 공개 정적인 메소드

Format output specific datas to standard output console and append LF character.
public static WriteLine ( string fmt ) : void
fmt string format string
리턴 void

_Write() 공개 정적인 메소드

public static _Write ( bool toStdout, bool newLine, string fmt ) : void
toStdout bool
newLine bool
fmt string
리턴 void