ConsoleShared.ConsoleMacro.RemoveLast C# (CSharp) Метод

RemoveLast() публичный Метод

public RemoveLast ( ) : void
Результат void
        public void RemoveLast()
        {
            if (_lastId > -1)
            {
                Remove(_lastId);
            }   
        }

Usage Example

Пример #1
0
        public static ConsoleExecuteResult SaveMacro(string name)
        {
            if (_consoleMacro == null)
            {
                return(new ConsoleExecuteResult("Nothing to save"));
            }
            //remove the last command, since that was the 'save' command
            _consoleMacro.RemoveLast();
            var result = _consoleMacro.Save(name);

            _consoleMacro = null;
            return(result);
        }