示例#1
0
        private LinkedListNode <Type> SearchList(Type target)
        {
            LinkedListNode <Type> workingNode;

            if (head.Equals(target))
            {
                return(head);
            }
            else
            {
                workingNode = head.GetNext();

                while (!workingNode.Equals(target))
                {
                    workingNode = workingNode.GetNext();
                }

                return(workingNode);
            }
        }