new List<string>() in a for loop code example
Example: c sharp list of strings
// Create a list of strings using 'new List<string>{}'
List<string> stringList = new List<string>{"string1", "string2"};
// Create a list of strings using 'new List<string>{}'
List<string> stringList = new List<string>{"string1", "string2"};