"william" <an*******@discussions.microsoft.com> wrote in message
news:F9**********************************@microsof t.com
Hi everyone,
I just started learning VB.NET, I found there are a lots methods
passing object parameter by value. For example,
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
It's impossible in vb6.In vb6, the object is always passed by
reference. How come we can pass object byval in .NET?
Can anyone explain it?
unless I'm very much mistaken about something in .Net it is the same as VB6;
in both cases you are passing the *reference to the object* either byval or
byref. The object itself is not passed in either platform. The ByVal/ByRef
determines only whether the called procedure can change the reference to a
new object or to Nothing.
--
C# newbie... posts are probably inaccurate, inelegant or both