Exemple #1
0
        public T Dequeue()
        {
            T data = items.Head.Value;

            items.Delete(items.Head.Value);
            return(data);
        }
        public T Pop()
        {
            T data;

            lock (this)
            {
                data = items.Head.Value;
                items.Delete(items.Head.Value);
            }
            return(data);
        }