Horje
C# print array Code Example
C# print array
string[] myArray = {"Dogs", "Cats", "Birds"};
foreach (string item in myArray)
{
  Console.WriteLine(item);
}
print array in c#
Console.WriteLine(string.Join("\n", myArrayOfObjects));
print content of array c#
//array of numbers, it works with strings also
int numbers[3] = {1, 4, 5, 6}

/*declares int named 'number' and assigns it the value of an index
starting from index 0 to the end of the array, in this case, 3*/
foreach(int number in numbers){
  //prints the number
  Console.WriteLine(number);
}
C# print array

foreach(var item in yourArray)
{
    Console.WriteLine(item.ToString());
}





Csharp

Related
free unity mouse look Code Example free unity mouse look Code Example
how to get executable path in wpf Code Example how to get executable path in wpf Code Example
how to change rotate with script unity Code Example how to change rotate with script unity Code Example
pass parameter to thread c# Code Example pass parameter to thread c# Code Example
unity json save array Code Example unity json save array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9