sqlitefunctionattribute.cs

来自「破解的飞信源代码」· CS 代码 · 共 58 行

CS
58
字号
namespace Imps.Client.Data
{
    using System;

    [AttributeUsage(AttributeTargets.Class, Inherited=false, AllowMultiple=true)]
    public sealed class SQLiteFunctionAttribute : Attribute
    {
        private int _arguments;
        private FunctionType _functionType;
        internal Type _instanceType;
        private string _name;

        public SQLiteFunctionAttribute()
        {
            this.Name = "";
            this.Arguments = -1;
            this.FuncType = FunctionType.Scalar;
        }

        public int Arguments
        {
            get
            {
                return this._arguments;
            }
            set
            {
                this._arguments = value;
            }
        }

        public FunctionType FuncType
        {
            get
            {
                return this._functionType;
            }
            set
            {
                this._functionType = value;
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?