I have converted a C# source to VB containing a class
Logger
and a static class
containing instances of Logger
.
But using VB.NET, I can't figure out how to create a Module
I can access from other source files in the same namespace.
I would simply like to access the object like I would do in C#:
Loggers.MyLogger.MyMethod()
or
MyNamespace.Loggers.MyLogger.MyMethod()
But that only works from the same file !
Public Shared Module Loggers
Public Shared ReadOnly MyLogger As Logger = New Logger()
End Module
Public Class Logger
..class content...
End Class
EDIT: Since I also tried with "shared", I guess something is wrong on the project level.