From 52b2fd8b91ebc7b4122d2cc23b5c73d58455edce Mon Sep 17 00:00:00 2001 From: Vocaoson Date: Fri, 9 Nov 2018 16:09:06 +0700 Subject: [PATCH] Separate content and example (#22468) * Separate content and example * Fixed formatting --- guide/english/csharp/foreach/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/csharp/foreach/index.md b/guide/english/csharp/foreach/index.md index 5dd1e82fdae..11cb4992218 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)