c# how to make a list with to values code example
Example 1: create List c#
using System.Collections.Generic
//type is your data type (Ej. int, string, double, bool...)
List<type> newList = new List<type>();
Example 2: instantiate list with values c#
var list = new List<string> {
"test1",
"test2",
"test3"
};