Top Solutions

How to use foreach with the continue?

This articles describes how to use foreach with the continue. If continue statement is used within the loop body, it immediately goes to the next iteration skipping the remaining code of the current iteration.

How to perform basic foreach loop?

This example describes how to perform foreach statement. The foreach statement iterates through a collection that implements the IEnumerable interface. When we compare with for statement foreach does’t use the indexes.