Answers for "c# combine two lists into array"

7

combine two lists c#

List<string> a = new List<string>();
List<string> b = new List<string>();

a.AddRange(b);
Posted by: Guest on September-18-2020
0

combine two arraylist c#

class Program

    {
        static void Main(string[] args)
        {
            ArrayList CountryList1 = new ArrayList();
            ArrayList CountryList2 = new ArrayList();

            CountryList1.Add("Pakistan");
            CountryList1.Add("Nepal");
            CountryList2.Add("Butan");
            CountryList2.Add("Srilanka");
          
            CountryList1.AddRange(CountryList2);
        }

    }
Posted by: Guest on June-18-2020

Code answers related to "c# combine two lists into array"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language