Hello,
"rob" <(E-Mail Removed)> schrieb:
> I have have a xmlTextWriter that calls a number of sub
> routines (up to 60), the only paramter past in is the
> xmlTextWriter and the paramenter past out is the
> xmlTextWriter
> Should I pass this paramter byVal or byRef
> I know passing byVal is the best praticse but as the
> xmlTextWriter gets larger, in my mind it seems like an
> inefficient use of resources to create some many copy's of
> the same variable
Have a look at the docs for the difference between ByVal and ByRef for
reference types. Passing the XmlTextWriter ByVal will not create a copy of
the XmlTextWriter.
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet