'in a Module: Sub New() 'your code goes here End Sub
VB.NET
Class ExplicitConstructor Shared Sub New() _message = "Hello World" End Sub Public Shared ReadOnly Property Message() As String Get Return _message End Get End Property Private Shared _message As String End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)