Hello guys. I am copying one ArrayList into another ArrayList. However, I am calling ToArray() on my source ArrayList. Later when I try to retrieve values from my target ArrayList, it only gives my System.String, instead of string values. Here is what I am trying
publicvoid CopySetting(ArrayList mySrcArrayList)
myTargetArrayList.Add(mySrcArrayList.ToArray(typeof(string))); //copying the ArrayList
foreach (Object obj in myTargetArrayList)
string str = (string)obj.ToString(); // here I get System.String, in str
So what could be wrong here? Thanks for any help.
This world is going to explode due to international politics, SOON.