Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire NSArray.

C# | Visual Basic | Visual C++ |
public virtual T Find<T>( Predicate<T> match ) where T : class, IManagedWrapper
Public Overridable Function Find(Of T As {Class, IManagedWrapper}) ( _ match As Predicate(Of T) _ ) As T
public: generic<typename T> where T : ref class, IManagedWrapper virtual T Find( Predicate<T>^ match )

- T
- The parametric type

- match (Predicate<(Of <(<'T>)>)>)
- The [!:Predicate{T}] delegate 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.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)