Example #1
0
        public IMethod GetVMethod(IMethod _base)
        {
            IMethod        _method = null;
            ICLRType_Sharp type    = this;

            while (type != _base.DeclaringType && type != null)
            {
                _method = type.GetMethod(_base.Name, _base.ParamList);
                if (_method != null)
                {
                    return(_method);
                }
                type = env.GetType(type.type_CLRSharp.BaseType.FullName) as ICLRType_Sharp;
            }
            return(_base);
        }
Example #2
0
        public IMethod GetVMethod(IMethod _base)
        {
            ICLRType_Sharp iCLRType_Sharp = this;
            IMethod        result;

            while (iCLRType_Sharp != _base.DeclaringType && iCLRType_Sharp != null)
            {
                IMethod method = iCLRType_Sharp.GetMethod(_base.Name, _base.ParamList);
                bool    flag   = method != null;
                if (flag)
                {
                    result = method;
                    return(result);
                }
                iCLRType_Sharp = (this.env.GetType(iCLRType_Sharp.type_CLRSharp.BaseType.FullName) as ICLRType_Sharp);
            }
            result = _base;
            return(result);
        }