Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Clear()

Implements System.Collections.Generic.ICollection< T >.

Definition at line 249 of file LinkedList.cs.

250 {
251 LinkedListNode<T> next = head;
252 while (next != null)
253 {
254 LinkedListNode<T> linkedListNode = next;
255 next = next.Next;
256 linkedListNode.Invalidate();
257 }
258 head = null;
259 count = 0;
260 version++;
261 }

References System.Collections.Generic.LinkedList< T >.count, System.Collections.Generic.LinkedList< T >.head, and System.Collections.Generic.LinkedList< T >.version.