Answers for "c# list in"

C#
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