Deveel.History.AddHistoryUnique C# (CSharp) Method

AddHistoryUnique() public static method

Adds a line of input to the scroll-back history, if it is different from the most recent line that is present.
public static AddHistoryUnique ( String line ) : void
line String
return void
        public static void AddHistoryUnique(String line)
        {
            if (line == null)
                line = String.Empty;
            if (history.Count == 0 ||
                ((string)(history[history.Count - 1])) != line)
                AddHistory(line);
        }