sqlitestatementhandle.cs
来自「破解的飞信源代码」· CS 代码 · 共 43 行
CS
43 行
namespace Imps.Client.Data
{
using System;
using System.Runtime.InteropServices;
internal class SQLiteStatementHandle : CriticalHandle
{
internal SQLiteStatementHandle() : base(IntPtr.Zero)
{
}
private SQLiteStatementHandle(IntPtr stmt) : this()
{
base.SetHandle(stmt);
}
public static implicit operator IntPtr(SQLiteStatementHandle stmt)
{
return stmt.handle;
}
public static implicit operator SQLiteStatementHandle(IntPtr stmt)
{
return new SQLiteStatementHandle(stmt);
}
protected override bool ReleaseHandle()
{
SQLiteBase.FinalizeStatement(this);
return true;
}
public override bool IsInvalid
{
get
{
return (base.handle == IntPtr.Zero);
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?