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

◆ FindAll< T >()

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

Definition at line 1650 of file Array.cs.

1651 {
1652 if (array == null)
1653 {
1654 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
1655 }
1656 if (match == null)
1657 {
1658 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match);
1659 }
1660 List<T> list = new List<T>();
1661 for (int i = 0; i < array.Length; i++)
1662 {
1663 if (match(array[i]))
1664 {
1665 list.Add(array[i]);
1666 }
1667 }
1668 return list.ToArray();
1669 }

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