📜  c# clear linkList - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:09.978000             🧑  作者: Mango

代码示例1
//Create the list

            LinkedList my_list = new LinkedList();

            //Add elements into the Linkedlist using AddLast() method

            my_list.AddLast(1);
            my_list.AddLast(3);
            my_list.AddLast(5);
            my_list.AddLast(7);
            my_list.AddLast(9);

            my_list.Clear();