Check out example codes for "c# how to write an array in a single line". It will help you in understanding the concepts better.

Code Example 1

// How to display an array on the same line:
string[] names = {"name1", "name2", "name3"}
Console.WriteLine("{0}", string.Join(", ", names));

Learn ReactJs, React Native from akashmittal.com