public MethodBody GetMethodBody(uint rid, RVA rva, IList <Parameter> parameters)
        {
            var dm = GetDumpedMethod(rid);

            if (dm == null)
            {
                return(null);
            }
            return(MethodBodyReader.CreateCilBody(module, dm.code, dm.extraSections, parameters, dm.mhFlags, dm.mhMaxStack, dm.mhCodeSize, dm.mhLocalVarSigTok));
        }
Пример #2
0
        public bool GetMethodBody(uint rid, RVA rva, IList <Parameter> parameters, GenericParamContext gpContext, out MethodBody methodBody)
        {
            var dm = GetDumpedMethod(rid);

            if (dm == null)
            {
                methodBody = null;
                return(false);
            }
            methodBody = MethodBodyReader.CreateCilBody(module, dm.code, dm.extraSections, parameters, dm.mhFlags, dm.mhMaxStack, dm.mhCodeSize, dm.mhLocalVarSigTok, gpContext);
            return(true);
        }