Esempio n. 1
0
        public void Dequeue()
        {
            Guest p = _queue.Dequeue();

            if (p == LastInQueue)
            {
                LastInQueue = null;
            }
            FrontInQueue = _queue.Peek();
            LastInQueue = _queue.LastOrDefault();
        }
Esempio n. 2
0
        public void Enqueue(Guest person)
        {
            _queue.Enqueue(person);

            LastInQueue = person;

            if (FrontInQueue == null)
            {
                FrontInQueue = person;
            }
        }