Hi,
I have a small function, that returns a string[], inside
the function, there is an arraylist[], being processed.
At the end of the function all the elements of the
ArrayList are copied to my returning array, using
ArrayList.ToArray(type) method.
But i am getting an error message that this conv is not
possible...
public static string[] Returner(string[] Words)
{
System.Collections.ArrayList news = new ArrayList();
for (int i=0; i<Words.Length-1; i++)
{
if (Words[i] != "")
{news.Add(Words[i].ToString());}
}
return (string[])news.ToArray() //ERROR
}
Can anyone please help.
Thanks in Advance