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

◆ FindLast()

LinkedListNode< T >? System.Collections.Generic.LinkedList< T >.FindLast ( T value)
inline

Definition at line 332 of file LinkedList.cs.

333 {
334 if (head == null)
335 {
336 return null;
337 }
338 LinkedListNode<T> prev = head.prev;
339 LinkedListNode<T> linkedListNode = prev;
340 EqualityComparer<T> @default = EqualityComparer<T>.Default;
341 if (linkedListNode != null)
342 {
343 if (value != null)
344 {
345 do
346 {
347 if (@default.Equals(linkedListNode.item, value))
348 {
349 return linkedListNode;
350 }
352 }
353 while (linkedListNode != prev);
354 }
355 else
356 {
357 do
358 {
359 if (linkedListNode.item == null)
360 {
361 return linkedListNode;
362 }
364 }
365 while (linkedListNode != prev);
366 }
367 }
368 return null;
369 }

References System.Runtime.Serialization.Dictionary, System.Collections.Generic.LinkedList< T >.head, and System.value.