N
Nathan Sokalski
I have the following code:
Dim values As New ArrayList()
values.Add("Yes")
values.Add("No")
values.Add("Maybe")
values.Add("Whatever")
dim x as String()=values.ToArray()
However, I recieve an error saying an Object array cannot be implicitly
converted to a String array. I noticed, however, that there is an overload
of the ToArray() method that accepts a System.Type to convert the resulting
array to. However, I am having trouble getting the System.Type for String.
Can someone help me here? Thanks.
Dim values As New ArrayList()
values.Add("Yes")
values.Add("No")
values.Add("Maybe")
values.Add("Whatever")
dim x as String()=values.ToArray()
However, I recieve an error saying an Object array cannot be implicitly
converted to a String array. I noticed, however, that there is an overload
of the ToArray() method that accepts a System.Type to convert the resulting
array to. However, I am having trouble getting the System.Type for String.
Can someone help me here? Thanks.