예제 #1
0
        public void Add(DistanceReading reading)
        {
            if (_queue.Count > 100)
                _queue.Dequeue();

            _queue.Enqueue(reading);
        }
예제 #2
0
        public void Add(DistanceReading reading)
        {
            if (_queue.Count > 100)
            {
                _queue.Dequeue();
            }

            _queue.Enqueue(reading);
        }