📄 sqliteconnectionhandle.cs
字号:
namespace Imps.Client.Data
{
using System;
using System.Runtime.InteropServices;
internal class SQLiteConnectionHandle : CriticalHandle
{
internal SQLiteConnectionHandle() : base(IntPtr.Zero)
{
}
private SQLiteConnectionHandle(IntPtr db) : this()
{
base.SetHandle(db);
}
public static implicit operator IntPtr(SQLiteConnectionHandle db)
{
return db.handle;
}
public static implicit operator SQLiteConnectionHandle(IntPtr db)
{
return new SQLiteConnectionHandle(db);
}
protected override bool ReleaseHandle()
{
SQLiteBase.Close(this);
return true;
}
public override bool IsInvalid
{
get
{
return (base.handle == IntPtr.Zero);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -