show what we have into an array c# code example
Example 1: 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);
}
Example 2: how to make an array in csharp
// whatever type you want
public GameObject[] Players;