public static void Destroy() { if (_customLexDb != null) { _customLexDb.RealDispose(); _customLexDb = null; } }
public static DbInstance GetDbInstance() { if (_customLexDb == null) { #if DEBUG _customLexDb = new CustomLexDb("forDebug", "TesT.Db"); #else _customLexDb = new CustomLexDb("forRelease", "./"); #endif _customLexDb.InitializeIndex(); } return _customLexDb; }