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

◆ Free()

void System.Reflection.Internal.ObjectPool< T >.Free ( T obj)
inlinepackage

Definition at line 55 of file ObjectPool.cs.

56 {
57 Element[] items = _items;
58 for (int i = 0; i < items.Length; i++)
59 {
60 if (items[i].Value == null)
61 {
62 items[i].Value = obj;
63 break;
64 }
65 }
66 }

References System.Reflection.Internal.ObjectPool< T >._items, System.obj, and System.Reflection.Internal.ObjectPool< T >.Element.Value.