在 VB6 应用程序中,我有一个Dictionary
其键是String
s 和值是自定义类的实例。如果我调用RemoveAll()
,Dictionary
它会首先释放自定义对象吗?还是我明确需要自己这样做?
Dim d as Scripting.Dictionary
d("a") = New clsCustom
d("b") = New clsCustom
' Are these two lines necessary?
Set d("a") = Nothing
Set d("b") = Nothing
d.RemoveAll