So here's what I'm trying to do:
Hopefully this makes sense.
The idea is that .Meh SHOULD be visible within the "Foo" class, but NOT within the "Main" class. So the second call of n.Meh = True should throw an error, while the first one would be fine.
Is this kind of encapsulation even possible?
-Javin
VB.NET:
Public Class Foo
Public Class Bar
XXXXX Meh As Boolean
End Class
Private Sub Yar()
Dim n As New Bar
n.Meh = True 'This should work as expected.
End Sub
End Class
Public Class Main
Private Sub Yar()
Dim n As New Bar
n.Meh = True 'This should throw an error saying that the "Meh" isn't accessible.
End Sub
End Class
Hopefully this makes sense.
The idea is that .Meh SHOULD be visible within the "Foo" class, but NOT within the "Main" class. So the second call of n.Meh = True should throw an error, while the first one would be fine.
Is this kind of encapsulation even possible?
-Javin