using System;
class Program
{
private static void Main(string[] args)
{
var str = new[] { "Vijay", "Bill", "Steve" };
foreach (var s in str)
{
Console.WriteLine(s);
}
Console.ReadKey();
}
}
|
Class Program
Private Shared Sub Main(args As String())
Dim str = New () {"Vijay", "Bill", "Steve"}
For Each s As var In str
Console.WriteLine(s)
Next
Console.ReadKey()
End Sub
End Class
|