Here is a simple example of that:
string[] arString = null; arString = new string[2]; arString[0] = "First Element"; arString[1] = "Second Element"; foreach (string s1 in arString) { Console.WriteLine(s1); }
Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks
string[] arString = null; arString = new string[2]; arString[0] = "First Element"; arString[1] = "Second Element"; foreach (string s1 in arString) { Console.WriteLine(s1); }
No comments:
Post a Comment