To add one list to another list in c#

Jitendrasoft09
Posted by Jitendrasoft09 under C# category on | Points: 40 | Views : 1126
using System;
using System.Collections.Generic;

namespace MyExample {
class JkExample {
static void Main(string[] args) {


List<string> list1 = new List<string>() { "apple", "orange"};
List<string> list2 = new List<string>() { "Grape", "mango"};


list1.AddRange(list2);


Console.ReadLine();
}

}

Comments or Responses

Login to post response