Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire NSArray.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public T FindLast<T>( Predicate<T> match ) where T : class, IManagedWrapper
Public Function FindLast(Of T As {Class, IManagedWrapper}) ( _ match As Predicate(Of T) _ ) As T
public: generic<typename T> where T : ref class, IManagedWrapper T FindLast( Predicate<T>^ match )
Generic Template Parameters
- T
- The parametric type
Parameters
- match (Predicate<(Of <(<'T>)>)>)
- The [!:Predicate{T}] delegate that defines the conditions of the element to search for.
Return Value
The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)