Answers for "initialize list of string c#"

C#
1

c# list string initialize inline

List<string> games = new List<string>() { "Doom",  "Tetris", "City of Heroes" }
Posted by: Guest on March-26-2021
2

instantiate list with values c#

var list = new List<string> {
  "test1",
  "test2",
  "test3"
};
Posted by: Guest on September-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language