L
linaj
Hi,
I have singleton class in C#:
class Logger
{
static Logger lInstance = new Logger();
private Logger() {}
public static Logger GetInstance() { return lInstance; }
}
When I want to access it from another assembly, like Logger l =
Logger.GetInstance(), I get TypeInitializationException ->
NullReferenceException. Any help?
I have singleton class in C#:
class Logger
{
static Logger lInstance = new Logger();
private Logger() {}
public static Logger GetInstance() { return lInstance; }
}
When I want to access it from another assembly, like Logger l =
Logger.GetInstance(), I get TypeInitializationException ->
NullReferenceException. Any help?