Answers for "c sharp init list"

C#
2

c# how to set string list

// This will create a new list called 'nameOfList':
var nameOfList = new List<string> 
{
  "value1",
  "value2",
  "value3"
};
Posted by: Guest on October-28-2020
0

c# list with 0 initialize

var tenDoubles = new List<double>(new double[10]);
Posted by: Guest on December-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language