Given in the following language specification, for me at least, calling Db.Foobar() [In the following code] does not indeed call off to the Shared Constructors of the base classes. I am curious as to a) is this my own fault for doing something wrong or b) is this an error in the language specification
Public MustInherit Class D1
Shared Sub New()
Console.WriteLine("D1 Static Constructor Called")
End Sub
End Class
Public MustInherit Class D2
Inherits D1
End Class
Public Class Da
Inherits D2
Public Sub New()
Console.WriteLine("Public Da Constructor Called")
End Sub
End Class
Public Class Db
Inherits D2
Shared Sub New()
Console.WriteLine("Db Static Constructor Called")
End Sub
Public Sub New()
Console.WriteLine("Public Db Constructor Called")
End Sub
Public Shared Sub FooBar()
Console.WriteLine("FooBar Called")
End Sub
End Class