Deveel.History.SetHistory C# (CSharp) Method

SetHistory() public static method

Set a particular history item at the given index.
public static SetHistory ( int index, string line ) : void
index int
line string
return void
        public static void SetHistory(int index, string line)
        {
            if (line == null)
                line = String.Empty;
            if (index >= 0 && index < history.Count)
                history[history.Count - index - 1] = line;
        }