Answers for "how to manage an array from a list in c#"

C#
10

c# array to list

var intArray = new[] { 1, 2, 3, 4, 5 };
var list = new List<int>(intArray);
Posted by: Guest on March-30-2020
0

new list/array with values c#

var myList = new List<string> { "foo", "bar" };
//Alternatively
var myArray = new[]{ "foo", "bar" };
Posted by: Guest on September-16-2021

Code answers related to "how to manage an array from a list in c#"

C# Answers by Framework

Browse Popular Code Answers by Language