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