⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sqliteconnectionhandle.cs

📁 破解的飞信源代码
💻 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 + -