public static IDisposable UseHistory(this IHistoryReadLine readLine, InputHistory history) { return(new ReadLineHistoryChanger(readLine: readLine, history: history)); }
public ReadLineHistoryChanger(IHistoryReadLine readLine, InputHistory history) { this.readLine = readLine; this.previousHistory = readLine.History; readLine.History = history; }