Check out example codes for "c# create array". It will help you in understanding the concepts better.

Code Example 1

string[] cars = {"Volvo", "BMW", "Ford", "Mazda"};

Code Example 2

int[] Nameofarray = new int[how much is the max];

for example:
int[] X = new int[5];

Code Example 3

// Define and Initialize
int[] arr = {1, 2, 3};

// Buuuut:
// Initial defining
int[] arr;

// This works
arr = new int[] {1, 2, 3};   

// This will cause an error
// arr = {1, 2, 3};

Code Example 4

int[] array = new int[]{1, 2, 3, 4, 5};
foreach (string i in array) 
{
  Console.WriteLine(i);
}

//or

for(int i=0; i<array.Length; i++){
	  Console.WriteLine(array[i]);
}

Code Example 5

string[] stringArray = new string[6];

Code Example 6

string name = "Dominic"

Learn ReactJs, React Native from akashmittal.com