我这里有:
Public Structure MyStruct
Public Name as String
Public Content as String
End Structure
Dim oStruct as MyStruct = New MyStruct()
oStruct.Name = ...
oStruct.Content = ...
Dim alList as ArrayList = new ArrayList()
alList.Add(oStruct)
我想将ArrayList转换为静态的、强类型的MyStruct数组。我该怎么做?使用ToArray方法没有成功。
我正在使用.NET Framework 2.0。