What would by reference, or by value mean in this context? This sort of idea
just doesn't apply when returning variables. How would that work?
That only applies to parameters of methods.
There is only one way you can return an object from a method. And that is to
return a reference to that object. But the word 'reference' here is not
related to the concept of passing parameters 'by reference'.
"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
Will the dataset below be returned by value or reference?
Public Shared Function getDS() As DataSet
Dim ds As New DataSet
'... do something
Return ds
End Function