I have the following code:
Dim values As New ArrayList()
values.Add("Yes ")
values.Add("No" )
values.Add("May be")
values.Add("Wha tever")
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.
--
Nathan Sokalski
njsokalski@hotm ail.com
Dim values As New ArrayList()
values.Add("Yes ")
values.Add("No" )
values.Add("May be")
values.Add("Wha tever")
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.
--
Nathan Sokalski
njsokalski@hotm ail.com
Comment