コード例 #1
0
        public IdFunctionObject (IIdFunctionCall idcall, object tag, int id, int arity)
        {
            if (arity < 0)
                throw new ArgumentException ();

            this.idcall = idcall;
            this.tag = tag;
            this.m_MethodId = id;
            this.arity = arity;
            if (arity < 0)
                throw new ArgumentException ();
        }
コード例 #2
0
        public IdFunctionObject(IIdFunctionCall idcall, object tag, int id, string name, int arity, IScriptable scope)
            : base(scope, null)
        {
            if (arity < 0)
                throw new ArgumentException ();
            if (name == null)
                throw new ArgumentException ();

            this.idcall = idcall;
            this.tag = tag;
            this.m_MethodId = id;
            this.arity = arity;
            this.functionName = name;
        }
コード例 #3
0
        public IdFunctionObject(IIdFunctionCall idcall, object tag, int id, int arity)
        {
            if (arity < 0)
            {
                throw new ArgumentException();
            }

            this.idcall     = idcall;
            this.tag        = tag;
            this.m_MethodId = id;
            this.arity      = arity;
            if (arity < 0)
            {
                throw new ArgumentException();
            }
        }
コード例 #4
0
        public IdFunctionObject(IIdFunctionCall idcall, object tag, int id, string name, int arity, IScriptable scope)
            : base(scope, null)
        {
            if (arity < 0)
            {
                throw new ArgumentException();
            }
            if (name == null)
            {
                throw new ArgumentException();
            }

            this.idcall       = idcall;
            this.tag          = tag;
            this.m_MethodId   = id;
            this.arity        = arity;
            this.functionName = name;
        }