// オリジナルはバグ? 关数名が一致していない
 //tjs_error IsInstanceOf(tjs_uint32 flag, tjs_int num, tjs_char *classname, iTJSDispatch2 *objthis) const {
 /// <exception cref="TjsException"></exception>
 /// <exception cref="VariantException"></exception>
 public virtual int IsInstanceOfByNum(int flag, int num, string className, Dispatch2
                                      objThis)
 {
     if (mObject == null)
     {
         throw new TjsException(Error.NullAccess);
     }
     return(mObject.IsInstanceOfByNum(flag, num, className, mObjThis != null ? mObjThis
                          : (objThis != null ? objThis : mObject)));
 }
        /// <exception cref="VariantException"></exception>
        /// <exception cref="TjsException"></exception>
        public virtual int IsInstanceOfByNum(int flag, int num, string classname, Dispatch2
                                             objthis)
        {
            Dispatch2 OBJ1 = ((objthis != null) ? (objthis) : (mDispatch1));
            int       hr   = mDispatch1.IsInstanceOfByNum(flag, num, classname, OBJ1);

            if (hr == Error.E_MEMBERNOTFOUND && mDispatch1 != mDispatch2)
            {
                Dispatch2 OBJ2 = ((objthis != null) ? (objthis) : (mDispatch2));
                return(mDispatch2.IsInstanceOfByNum(flag, num, classname, OBJ2));
            }
            return(hr);
        }