public static LogisticsPlugins Instance() { if (instance == null) { lock (LockHelper) { if (instance == null) { instance = new LogisticsPlugins(); } } } instance.VerifyIndex(); return(instance); }
public static LogisticsPlugins Instance() { if (instance == null) { lock (LockHelper) { if (instance == null) { instance = new LogisticsPlugins(); } } } instance.VerifyIndex(); return instance; }
public static LogisticsPlugins Instance() { if (LogisticsPlugins.instance == null) { object lockHelper; Monitor.Enter(lockHelper = LogisticsPlugins.LockHelper); try { if (LogisticsPlugins.instance == null) { LogisticsPlugins.instance = new LogisticsPlugins(); } } finally { Monitor.Exit(lockHelper); } } LogisticsPlugins.instance.VerifyIndex(); return(LogisticsPlugins.instance); }