System.ConsoleDriver.Read C# (CSharp) Method

Read() public static method

public static Read ( ) : int
return int
		public static int Read ()
		{
			return ReadKey (false).KeyChar;
		}

Usage Example

Esempio n. 1
0
		public static int Read ()
		{
			if ((stdin is CStreamReader) && ConsoleDriver.IsConsole) {
				return ConsoleDriver.Read ();
			} else {
				return stdin.Read ();
			}
		}