Esempio n. 1
0
        public Type Remove(Type target)
        {
            LinkedListNode <Type> workingNode, nodeToRemove = SearchList(target);

            workingNode = nodeToRemove.GetPrev();
            workingNode.SetNext(nodeToRemove.GetNext());

            workingNode = workingNode.GetNext();
            workingNode.SetPrev(nodeToRemove.GetPrev());

            UpdateTail(workingNode);

            return(nodeToRemove.GetData());
        }