LinkedListGeneric

it2022-05-09  26

LinkedList<T> and LinkedListNode<T> Class Diagram code  1using System; 2using System.Collections.Generic; 3class Program 4{ 5 6    static void Main() 7    { 8        LinkedList<int> linkedList = new LinkedList<int>(); 9        linkedList.AddFirst(1);10        linkedList.AddAfter(linkedList.First, 2);11        linkedList.AddBefore(linkedList.Last, 3);12        linkedList.AddLast(4);13        Console.WriteLine(linkedList.Count);14        Console.ReadKey();15    }16}

转载于:https://www.cnblogs.com/nanshouyong326/archive/2007/05/11/742560.html

相关资源:七夕情人节表白HTML源码(两款)

最新回复(0)