public static UCAC4Index GetIndex(string catalogLocation) { if (s_UCAC4Index == null) { lock (s_SyncRoot) { if (s_UCAC4Index == null) { s_UCAC4Index = new UCAC4Index(catalogLocation); } } } return(s_UCAC4Index); }
public UCAC4Catalogue(string catalogLocation) { m_CatalogLocation = catalogLocation; m_Index = UCAC4Index.GetIndex(catalogLocation.TrimEnd('\\')); }
public static UCAC4Index GetIndex(string catalogLocation) { if (s_UCAC4Index == null) { lock (s_SyncRoot) { if (s_UCAC4Index == null) { s_UCAC4Index = new UCAC4Index(catalogLocation); } } } return s_UCAC4Index; }