vb.net:是否清除System.Collections.ArrayList的内容?

vb.net:是否清除System.Collections.ArrayList的内容?,vb.net,Vb.net,如何清除arraylist中的所有元素 Dim myAL As New ArrayList() myAl.Clear() 还有。。关于乔尔的评论 还有。。关于乔尔的评论 召唤 其中arrayList是您的arrayList。呼叫 arrayList.Clear() 其中arrayList是您的arrayList。假设.Net 2.0或更高版本,请不要使用arrayList!!因为为了与以前的版本兼容,它们大多仍在框架中。System.Collections.Generic.ListOf T几

如何清除arraylist中的所有元素

Dim myAL As New ArrayList()
myAl.Clear()
还有。。关于乔尔的评论

还有。。关于乔尔的评论

召唤

其中arrayList是您的arrayList。

呼叫

arrayList.Clear()

其中arrayList是您的arrayList。

假设.Net 2.0或更高版本,请不要使用arrayList!!因为为了与以前的版本兼容,它们大多仍在框架中。System.Collections.Generic.ListOf T几乎完全取代了ArrayList。假设.Net 2.0或更高版本,请不要使用ArrayList!!因为为了与以前的版本兼容,它们大多仍在框架中。System.Collections.Generic.ListOf T几乎完全替代了ArrayList。