我的代码编译成功 运行崩溃 怎么回事? 
还有 ArrayList如何转换成string[]类型的数组?
我程序中将其转换为Array类型的方法对吗?using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
            ArrayList a = new ArrayList();
            ArrayList b = new ArrayList();
            ArrayList c = new ArrayList();            a.Add("12");
            a.Add("14");
            a.Add("11");            b.Add("11");
            b.Add("12");
            b.Add("13");            c = Same(a, b);
            Console.WriteLine(c);        }
        public static ArrayList Same(ArrayList arrayA, ArrayList arrayB)
        {
            Array A = arrayA.ToArray();//这里对吗?
            Array B = arrayB.ToArray();
           
                        ArrayList temp = new ArrayList();          
            foreach (Array s in A)
            {
                if(Array.IndexOf(B,s)>=0) temp.Add(s);                
            }
            return temp;
        }
    }
}