Inheritance: IPaths
コード例 #1
0
ファイル: Paths.cs プロジェクト: Kamalisk/OCTGN
 public static IPaths Get()
 {
     lock (PathsSingletonLocker) return SingletonContext ?? (SingletonContext = new Paths());
 }
コード例 #2
0
ファイル: Paths.cs プロジェクト: sbarnabas/OCTGN
 public static IPaths Get()
 {
     if (SingletonContext != null) return SingletonContext;
     lock (PathsSingletonLocker)
     {
         if (SingletonContext == null)
         {
             SingletonContext = new Paths();
         }
         return SingletonContext;
     }
 }