TipGiver
Programmer
- Sep 1, 2005
- 1,863
I have this:
How can it dispose the _b before getting out of the function ? Is there any other way appart from this ?
Code:
Private Function CreateBuffer(ByVal cmd As Byte) As ArrayList
Dim _b As New ArrayList
_b.Add(cmd)
Try
Return (_b)
Finally
_b = Nothing
End Try
End Function
How can it dispose the _b before getting out of the function ? Is there any other way appart from this ?