vytvoriť Zoznam c#
using System.Collections.Generic
//type is your data type (Ej. int, string, double, bool...)
List<type> newList = new List<type>();
urobte si zoznam c#
IList<int> newList = new List<int>(){1,2,3,4};
c ostré zoznam reťazcov
// Create a list of strings using 'new List<string>{}'
List<string> stringList = new List<string>{"string1", "string2"};
c# ako nastaviť string zoznam
// This will create a new list called 'nameOfList':
var nameOfList = new List<string>
{
"value1",
"value2",
"value3"
};