Deveel.History.AddHistory C# (CSharp) Метод

AddHistory() публичный статический Метод

Add a line of input to the scroll-back history.
public static AddHistory ( string line ) : void
line string The line string to add to the history.
Результат void
        public static void AddHistory(string line)
        {
            if (line == null)
                line = String.Empty;

            if (maxHistorySize != 0 && history.Count == maxHistorySize)
                // Remove the oldest entry, to preserve the maximum size.
                history.RemoveAt(0);
            history.Add(line);
        }