G
Guest
I've inherited some legacy code that I'm supposed to base my own work on. I
thought I was a fairly experienced VB.Net programmer but I've never seen
anything like this before.
The programmer has created a NotInheritable class full of shared properties
and functions. It contains the following declarations:
Private Sub New()
'Hiding the new preventing from being created.
End Sub
Shared Sub New()
.... pile of what appears to be initialization code...
End Sub
What is the basic concept here and when (and how) does New get called?
thought I was a fairly experienced VB.Net programmer but I've never seen
anything like this before.
The programmer has created a NotInheritable class full of shared properties
and functions. It contains the following declarations:
Private Sub New()
'Hiding the new preventing from being created.
End Sub
Shared Sub New()
.... pile of what appears to be initialization code...
End Sub
What is the basic concept here and when (and how) does New get called?