Hey all,
A simple question really - if I create an object to use very breifly and then discard, is there any need for the final line in this code?
Im not sure if setting my object to Nothing actually makes any difference with the GC?
Thanks
mafro
A simple question really - if I create an object to use very breifly and then discard, is there any need for the final line in this code?
VB.NET:
[COLOR=Blue]Dim[/COLOR] wsi [COLOR=Blue]As New[/COLOR] WorkStreamInst([COLOR=Blue]Me[/COLOR].workstream_id, [COLOR=Blue]Me[/COLOR].workstream_rev)
[COLOR=Blue]Me[/COLOR].data_class = wsi.data_class
[COLOR=Blue]Me[/COLOR].sp_prefix = wsi.sp_prefix
[COLOR=Blue]Me[/COLOR].ui_control = wsi.ui_control
[COLOR=Blue]Me[/COLOR].auth_control = wsi.auth_control
[COLOR=Blue]Me[/COLOR].unit_of_work = wsi.unit_of_work
wsi = [COLOR=Blue]Nothing [/COLOR][COLOR=SeaGreen]'needed?[/COLOR]
Thanks
mafro