Inheritance: IPaths
Exemplo n.º 1
0
 public static IPaths Get()
 {
     lock (PathsSingletonLocker) return SingletonContext ?? (SingletonContext = new Paths());
 }
Exemplo n.º 2
0
 public static IPaths Get()
 {
     if (SingletonContext != null) return SingletonContext;
     lock (PathsSingletonLocker)
     {
         if (SingletonContext == null)
         {
             SingletonContext = new Paths();
         }
         return SingletonContext;
     }
 }