Performs the specified action on each element of the NSArray.

C# | Visual Basic | Visual C++ |
public virtual void ForEach<T>( Action<T> action ) where T : class, IManagedWrapper
Public Overridable Sub ForEach(Of T As {Class, IManagedWrapper}) ( _ action As Action(Of T) _ )
public: generic<typename T> where T : ref class, IManagedWrapper virtual void ForEach( Action<T>^ action )

- T
- The parametric type

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