Initialize string arrays
using System;
class MainClass
{
public static void Main()
{
string[] stringArray = {"Hello", "World"};
foreach (string myString in stringArray)
{
Console.WriteLine("myString = " + myString);
}
}
}
Output myString = Hello
myString = World
|
HTML code for linking to this page:
Related in same category :
-
-
-
|