Check out example codes for "c# list.foreach". It will help you in understanding the concepts better.

Code Example 1

List<string> someList = <some way to init>
someList.ForEach(delegate(string s) {
    <process the string>
});

Code Example 2

someList.ForEach(x => { if(x.RemoveMe) someList.Remove(x); });

Learn ReactJs, React Native from akashmittal.com