コード例 #1
0
        public IReadKeyResultWrapper ReadKeyWithOptions()
        {
            ConsoleKey key        = Console.ReadKey().Key;
            var        readResult = new ReadKeyResult(key);

            return(new ReadKeyResultWrapper(readResult, this));
        }
コード例 #2
0
 internal ReadKeyResultWrapper(ReadKeyResult readResult, Consolefy fluentConsole)
 {
     _possibleOutcomes = new List <PossibleReadKeyOutcome>();
     _readResult       = readResult;
     _fluentConsole    = fluentConsole;
 }