internal static void Dispose(this SqliteConnectionHandle connection) { try { SQLiteBase.CloseConnection(connection); } catch (SqliteException) { } }
protected override bool ReleaseHandle() { try { SQLiteBase.CloseConnection(this); } catch (SqliteException) { } return(true); }
protected override bool ReleaseHandle() { try { IntPtr localHandle = Interlocked.Exchange(ref this.handle, IntPtr.Zero); if (localHandle != IntPtr.Zero) { SQLiteBase.CloseConnection(this, localHandle); } } catch (SqliteException) { } finally { this.handle = IntPtr.Zero; this.SetHandleAsInvalid(); } return(true); }