Created
June 1, 2015 21:27
-
-
Save csdear/3121dd6bb179dc08adb3 to your computer and use it in GitHub Desktop.
List & Foreach - Basic, Strongly Typed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //using System; | |
| //using System.Collections.Generic; | |
| //using System.Linq | |
| // | |
| class Program { | |
| static void Main() | |
| { | |
| List <int> list = new List<int>() { 1, 2, 3, 3, 4, 4, 4 }; | |
| foreach (int value in list) | |
| { | |
| Console.WriteLine("Before: {0}", value); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment