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

◆ GetValuesAsList()

List< T > System.Threading.ThreadLocal< T >.GetValuesAsList ( )
inlineprivate

Definition at line 407 of file ThreadLocal.cs.

408 {
409 LinkedSlot linkedSlot = _linkedSlot;
410 int num = ~_idComplement;
411 if (num == -1 || linkedSlot == null)
412 {
413 return null;
414 }
415 List<T> list = new List<T>();
416 for (linkedSlot = linkedSlot._next; linkedSlot != null; linkedSlot = linkedSlot._next)
417 {
418 list.Add(linkedSlot._value);
419 }
420 return list;
421 }

References System.Threading.ThreadLocal< T >._linkedSlot, and System.list.