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

◆ FindLast< T >()

static ? T System.Array.FindLast< T > ( T[] array,
Predicate< T > match )
inlinestatic

Definition at line 1718 of file Array.cs.

1719 {
1720 if (array == null)
1721 {
1722 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
1723 }
1724 if (match == null)
1725 {
1726 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match);
1727 }
1728 for (int num = array.Length - 1; num >= 0; num--)
1729 {
1730 if (match(array[num]))
1731 {
1732 return array[num];
1733 }
1734 }
1735 return default(T);
1736 }

References System.array, System.match, and System.ThrowHelper.ThrowArgumentNullException().