Searches for an element that matches the predicate, and returns the first occurrence within the entire array.
- T
- Documentation for this section has not yet been entered.
- array
- The array to search.
- match
- The predicate that defines the conditions of the element to search for.
The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T.
Type Reason ArgumentNullException array or match is null.
The elements of array are individually passed to the predicate, moving forward in the array, starting with the first element and ending with the last element. Processing is stopped when the predicate returns true.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0