Check out example codes for "unity array c#". It will help you in understanding the concepts better.
Code Example 1
using System.Collections.Generic;
Code Example 2
GameObject[ ] carsInTheScene = GameObject.FindGameObjectsWithTag("car");
Code Example 3
string[ ] familyMembers = new string[]{"John", "Amanda", "Chris", "Amber"} ;
string[ ] carsInTheGarage = new string[] {"VWPassat", "BMW"} ;
int[ ] doorNumbersOnMyStreet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
GameObject[ ] carsInTheScene = GameObject.FindGameObjectsWithTag("car");
Code Example 4
public string[] myArrayName = new string[4];
Code Example 5
new List();
Code Example 6
public string[ ] familyMembers = new string[ ]{"Greg", "Kate", "Adam", "Mia"} ;
Learn ReactJs, React Native from akashmittal.com