c# slice array code example
Example 1: C# print array
string[] myArray = {"Dogs", "Cats", "Birds"};
foreach (string item in myArray)
{
Console.WriteLine(item);
}
Example 2: c# sort array
Array.Sort(arr);
string[] myArray = {"Dogs", "Cats", "Birds"};
foreach (string item in myArray)
{
Console.WriteLine(item);
}
Array.Sort(arr);