public void Add(DistanceReading reading) { if (_queue.Count > 100) _queue.Dequeue(); _queue.Enqueue(reading); }
public void Add(DistanceReading reading) { if (_queue.Count > 100) { _queue.Dequeue(); } _queue.Enqueue(reading); }