📜  合并两个arraylist c#代码示例

📅  最后修改于: 2022-03-11 14:48:49.760000             🧑  作者: Mango

代码示例1
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);
        }

    }