public void Dispose() { Release(); if (_dll != null) { _dll.Dispose(); _dll = null; } GC.SuppressFinalize(this); }
//-----------Public functions---------------------------------------------- public CoreLib() { try { _dll = new CoreDll(); } catch (Exception ex) { throw new Exception("Can't load core library! " + Environment.NewLine + ex.Message); } _dll.adCreate(); }