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
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.