Пример #1
0
 public static Log getInstance()
 {
   lock ((object) ClassLiteral<Log>.Value)
   {
     if (Log.singleton == null)
       Log.singleton = new Log();
     return Log.singleton;
   }
 }
Пример #2
0
 protected internal static void defineLog(Log log)
 {
   lock ((object) ClassLiteral<Log>.Value)
     Log.singleton = log;
 }