18 using System.Collections.Generic;
30 private readonly Queue<KeyValuePair<string, DateTime>> _queue;
31 private readonly List<string> _symbols;
39 base(name, (Func<DateTime, IEnumerable<string>>) null)
41 _queue =
new Queue<KeyValuePair<string, DateTime>>(tickersByDate);
42 _symbols =
new List<string>();
51 this(name, tickersByDate.ConvertToDictionary<string, DateTime>())
61 var added =
new List<string>();
62 while (_queue.TryPeek(out var keyValuePair) && keyValuePair.Value <= date)
64 added.Add(_queue.Dequeue().Key);
74 _symbols.AddRange(added);