public void Add(Query query) { if (Current != null && Current.Value.RawQuery.Equals(query.RawQuery)) { return; } Current = Queries.AddFirst(query); if (Queries.Count >= _maxHistorySize) { Queries.RemoveLast(); } }