public void UpdateToTop(int index) { SqlInfo topInfo = LastOpenList[index]; LastOpenList.RemoveAt(index); LastOpenList.Insert(0, topInfo); }
public void Add(SqlInfo info) { if (LastOpenList.Count > MaxSize) { LastOpenList.RemoveAt(LastOpenList.Count - 1); } LastOpenList.Add(info); }
public bool Exists(SqlInfo info) { return(LastOpenList.Contains(info)); }
public void RemoveAt(int index) { LastOpenList.RemoveAt(index); }
public bool Remove(SqlInfo info) { return(LastOpenList.Remove(info)); }