SyntaxFix
Write A Post
Hire A Developer
Questions
One liner:
string[] items = new string[] { "a", "b" }; // this adds "c" to the string array: items = new List<string>(items) { "c" }.ToArray();