Check out example codes for "array to list C". It will help you in understanding the concepts better.

Code Example 1

using System.Linq;

int[] ints = new [] { 10, 20, 10, 34, 113 };

List<int> lst = ints.OfType<int>().ToList(); // this isn't going to be fast.

OR

List<int> lst = new List<int> { 10, 20, 10, 34, 113 };

Learn ReactJs, React Native from akashmittal.com