I am passing a page object to a classes New subroutine by value but don't really know what is going on behind the scenes. Here is the code...
Public Class MyClass
Public ThePage As Page
Public Sub New(byVal myPage As Page)
ThePage = myPage
Dim objMyClass As New MyClass(Me.Page)
So, have I copied and created a whole new Page object called ThePage, or is there still only one instance of the page except objMyClass.ThePage points to the original Page instance passed in through the NewSub(...).
I don't really want to make another instance of the page, I just want to reference the only instance.
I hope my question makes sense and thanks for your time.