Answers for "c# list ="

C#
3

to list c#

var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
Posted by: Guest on June-17-2020
0

Lists - Learn C#

List<string> food = new List<string>();
food.Add("apple");
food.Add("banana");

List<string> vegetables = new List<string>();
vegetables.Add("tomato");
vegetables.Add("carrot");

food.AddRange(vegetables);
Console.WriteLine(food.Count);
Posted by: Guest on September-25-2020

C# Answers by Framework

Browse Popular Code Answers by Language