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
)
inline
static
package
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
}
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.ExceptionArgument.list
@ list
System.ExceptionArgument.item
@ item
References
System.item
, and
System.list
.
System
Data
Index
Generated by
1.10.0