Hi guys,
Got a strange question and wondering if someone can point out what I am doing wrong?
I'm using VS2008 and have created a dll with the following code:
I built this and then created a new project in VB, standard settings. I then add a reference to the above .dll and then when I run the following code in the Form1_Load sub:
I have visibility of the internal private property of the class in the dll.
Please can someone tell me what the heck I have forgotten to be able to see the private property??? From what I can see this should not be visible outside the class...
Anyone? Or am I missing something obvious here???
Thanks in advance,
Andy
Got a strange question and wondering if someone can point out what I am doing wrong?
I'm using VS2008 and have created a dll with the following code:
VB.NET:
Public Class Test
Private privatesampleProperty As String
Public Property SampleProperty() As String
Get
Return privatesampleProperty
End Get
Set(ByVal value As String)
privatesampleProperty = value
End Set
End Property
End Class
I built this and then created a new project in VB, standard settings. I then add a reference to the above .dll and then when I run the following code in the Form1_Load sub:
VB.NET:
Dim test as New Test
test.SampleProperty = "TestSample"
I have visibility of the internal private property of the class in the dll.

Please can someone tell me what the heck I have forgotten to be able to see the private property??? From what I can see this should not be visible outside the class...
Anyone? Or am I missing something obvious here???
Thanks in advance,
Andy
Last edited: