mcainc
asked on
VB.NET can you execute code AFTER Return in a function?
I have a function that creates an arraylist & returns it... however after it is returned I want to make the arraylist variable = nothing
I get a warning with that a value isn't returned on all code paths
Dim aList as New ArrayList
Try
...
Return aList
Finalize
aList = nothing
End Try
is there a better way to do this?
I get a warning with that a value isn't returned on all code paths
Dim aList as New ArrayList
Try
...
Return aList
Finalize
aList = nothing
End Try
is there a better way to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window