Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# clear linkList

            //Create the list

            LinkedList<int> my_list = new LinkedList<int>();

            //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();
 
PREVIOUS NEXT
Tagged: #clear #linkList
ADD COMMENT
Topic
Name
3+2 =