diff --git a/guide/english/csharp/foreach/index.md b/guide/english/csharp/foreach/index.md index 5dd1e82fda..11cb499221 100644 --- a/guide/english/csharp/foreach/index.md +++ b/guide/english/csharp/foreach/index.md @@ -9,11 +9,13 @@ The `foreach` loop executes a block of code for each item in a collection. The b ### Example ```csharp +// syntax foreach (element in iterable-item) { // body of foreach loop } +// sample code List Names = new List{ "Jim", "Jane", "Jack" } foreach(string name in Names)