The default parameter passing in C# is 'ByVal' as well - it's just there is
no keyword for it. ByVal means that a copy of the *reference* is passed.
Never is a copy of the object passed for reference types.
"John Galt" <nf*@nospam.com> wrote in message
news:eC**************@TK2MSFTNGP11.phx.gbl...
I was looking at a VB.NET program that is passing strings to method calls
using ByVal. I was wondering if this is for a reason and, if so, should a
C# conversion of code samples from VB.NET also use an equivilent rather than
passing strings by reference?