Out of curiosity...what happens when we call a method that returns some value but we don\'t handle/use it? And we also expect that sometimes this returned value could be rea
From a memory management point of view thats fine - if the calling function doesn't use it, it goes out of scope and gets garbage collected.
In this particular case DataTable does implement IDisposable so its not all 100% fine:
If the returned object implements IDisposable then its a good idea to dispose it, for example:
using (var retVal = InsertIntoDB(...))
{
// Could leave this empty if you wanted
}