Revision: 68865
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 9, 2015 21:26 by jessonapc
Initial Code
using System; class Program { static void Main() { string[] arr = new string[4]; // Initialize arr[0] = "one"; // Element 1 arr[1] = "two"; // Element 2 arr[2] = "three"; // Element 3 arr[3] = "four"; // Element 4 // Loop over strings foreach (string s in arr) { Console.WriteLine(s); } } }
Initial URL
http://www.dotnetperls.com/loop-string-array
Initial Description
Simple example of looping over a string array.
Initial Title
Looping over a string array
Initial Tags
Initial Language
C#