ReadLine() public method

public ReadLine ( ) : string
return string
Example #1
0
        protected override string ReadCommand()
        {
            string command = "";

            do
            {
                System.Console.Write(mReadBuffer.Prompt);
                command = mReadBuffer.ReadLine();
            }while (string.IsNullOrWhiteSpace(command));

            return(command.Trim());
        }