In my winform application, I have an arraylist containing a dynamic number of string arrays. I need to somehow remove each string array from the array list and then use these string arrays as parameters for a function. The number of string arrays in the arraylist can vary as they are created dynamically.
The method declaration:
public void mychartbuilder(string[] Column1, string[] Column2 = null, string[] Column3 = null, string[] Column4 = null)
The following is causing the biggest headache. Since there is a dynamic number of arrays in the list, I can't determine how to pull them out and then send them into the function as parameters.
foreach (string[] myarray in myArrayList)
{
string[] copy1 = new string[rcounter];
}
mymethods.mychartbuilder(//string array parameters will go here)
Thanks in advance.