Esempio n. 1
0
        public void DeleteFirst()
        {
            if (ListIsEmpty())
            {
                return;
            }

            if (First == Last)
            {
                First = Last = null;
            }
            else
            {
                var second = First.Next;
                First.DeleteNext();
                First = second;
            }

            _count--;
        }