Answers for "initialize list of strings 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
0

c#l list<string> initialize

List<string> mylist = new List<string>(new string[] { "element1", "element2", "element3" });
Posted by: Guest on June-14-2021

C# Answers by Framework

Browse Popular Code Answers by Language