SyntaxFix
Write A Post
Hire A Developer
Questions
It depends which version of C# you're using, from version 3.0 onwards you can use...
List<string> nameslist = new List<string> { "one", "two", "three" };