Create List with values in C#
To create list of int in C#, you simply use like below example:using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
List<int> myValues = new List<int>(new int[] { 1, 2, 3 } );
}
}