.NET クラス ローダーが動作する標準的な方法はありますか?
このコードをコンパイルするとします。
Option Strict On : Option Explicit On
Module Module1
Sub Main()
System.Diagnostics.Debug.WriteLine("Main")
Dim g = C.A
End Sub
End Module
Public Class C
Shared Sub New()
System.Diagnostics.Debug.WriteLine("Init C")
End Sub
Shared Property A As New A
End Class
Public Class A
Shared Sub New()
System.Diagnostics.Debug.WriteLine("Init A")
End Sub
Public Sub New()
System.Diagnostics.Debug.WriteLine("A Constructor")
End Sub
End Class
コンパイルされたコードが (実装されているすべてのプラットフォームで) 次の出力を持つことを保証できますか?
Main
Init A
A Constructor
Init C