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

◆ LastIndexOf< T >() [3/4]

static int System.Collections.Immutable.ImmutableList< T >.LastIndexOf< T > ( this IImmutableList< T > list,
T item,
int startIndex )
inlinestatic

Definition at line 115 of file ImmutableList.cs.

116 {
117 Requires.NotNull(list, "list");
118 if (list.Count == 0 && startIndex == 0)
119 {
120 return -1;
121 }
122 return list.LastIndexOf(item, startIndex, startIndex + 1, EqualityComparer<T>.Default);
123 }

References System.Default, System.item, System.list, and System.startIndex.