c# initialise list with values code example
Example 1: instantiate list with values c#
var list = new List<string> {
"test1",
"test2",
"test3"
};
Example 2: initialize list in c#
List<string> optionList = new List<string>
{ "AdditionalCardPersonAdressType", /* rest of elements */ };