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

◆ IndexOfReference< T >()

static int System.Data.Index.IndexOfReference< T > ( List< T > list,
T item )
inlinestaticpackage
Type Constraints
T :class 

Definition at line 878 of file Index.cs.

878 : class
879 {
880 if (list != null)
881 {
882 for (int i = 0; i < list.Count; i++)
883 {
884 if (list[i] == item)
885 {
886 return i;
887 }
888 }
889 }
890 return -1;
891 }

References System.item, and System.list.