public static IPaths Get() { lock (PathsSingletonLocker) return SingletonContext ?? (SingletonContext = new Paths()); }
public static IPaths Get() { if (SingletonContext != null) return SingletonContext; lock (PathsSingletonLocker) { if (SingletonContext == null) { SingletonContext = new Paths(); } return SingletonContext; } }