Exemplo n.º 1
0
 public static IDisposable UseHistory(this IHistoryReadLine readLine, InputHistory history)
 {
     return(new ReadLineHistoryChanger(readLine: readLine, history: history));
 }
Exemplo n.º 2
0
 public ReadLineHistoryChanger(IHistoryReadLine readLine, InputHistory history)
 {
     this.readLine        = readLine;
     this.previousHistory = readLine.History;
     readLine.History     = history;
 }