P
prefersgolfing
In 6, by default arguments, were passed byref what is the default in .NET?
Can you point me to any MSDN documentation? TIA
Can you point me to any MSDN documentation? TIA
rmacias said:That is incorrect. When you pass a reference type ByVal, a pointer to a copy
of the data gets passed to the method. You can manipulate the data as much
as you want with out affecting the value of the data from the calling method.
When you pass a reference type ByRef, you are actually passing the pointer
to that value to the method. If you manipulate the value within the method,
the value is also affected in the calling method.
Public Sub Test()
Dim x As Integer = 10