>which then is the prefered method to return the SqlDatareader
>object back to Function A (and why ?).
Option 1 and 3 are the only two that let you return a new
SqlDataReader object. Option 2 only lets you modify an existing one.
Whether you should use 1 or 3 depends on if you're actually using the
Long return value in #1 for something useful or not.
>Is it better to pass "objects" ByVal or ByRef (from a performance
>perspective) ?
From a performance point of view I don't think it makes any
difference. Do whatever makes sense for the semantics of your method.
ByRef indicates that the parameter can be reassigned to refer to a new
object.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.