Declaring variables with New DataSet vs DataSet

Posted by eych on Stack Overflow See other posts from Stack Overflow or by eych
Published on 2010-04-16T13:44:08Z Indexed on 2010/04/16 17:23 UTC
Read the original article Hit count: 562

What is the impact of creating variables using:

Dim ds as New DataSet
ds = GetActualData()

where GetActualData() also creates a New DataSet and returns it?
Does the original empty DataSet that was 'New'ed just get left in the Heap?

What if this kind of code was in many places? Would that affect the ASP.NET process and cause it to recycle sooner?

© Stack Overflow or respective owner

Related posts about dataset

Related posts about variables