// *
// * Copyright (C) 2008 Roger Alsing : http://www.RogerAlsing.com
// *
// * This library is free software; you can redistribute it and/or modify it
// * under the terms of the GNU Lesser General Public License 2.1 or later, as
// * published by the Free Software Foundation. See the included license.txt
// * or http://www.gnu.org/copyleft/lesser.html for details.
// *
// *
using System.Collections.Generic;
namespace Alsing.SourceCode
{
///
///
///
public sealed class UndoBuffer : List
{
public UndoBuffer()
{
MaxSize = 1000;
}
public int MaxSize { get; set; }
///
///
///
///
public void ClearFrom(int index)
{
while (index <= Count - 1)
RemoveAt(index);
}
}
}