If I have a class with a shared property, and the properties value is a new object instance created outside of a class procedure (sub/function), can I also set the properties of that shared object outside of a procedure?
Public Class Person
Private Shared DataItem = New DataItem
DataItem.Value = 10 ' Assuming Value is a Public Property
End Class
I think in other languages, such as Java, you could create a static block to run and setup static values: static {}
Not sure if you can do that in VB though...
EDIT: Basically the VB equivalent of a static initializer found in Java. Can't seem to find any info on this.