internal void Resolve(PEReader buff, MethodDef meth) { if (resolved) { return; } buff.currentMethodScope = meth; buff.currentClassScope = (Class)meth.GetParent(); locals = buff.ReadLocalSig(sigIx); buff.currentMethodScope = null; buff.currentClassScope = null; }
internal GenericParam GetGenericParam(MethodDef meth) { Contract.Requires(meth != null); if (gPar == null) { if (isClassPar) { ClassDef methClass = (ClassDef)meth.GetParent(); gPar = methClass.GetGenericParam((int)index); } else { gPar = meth.GetGenericParam((int)index); } } return(gPar); }
internal void Resolve(PEReader buff, MethodDef meth) { if (resolved) return; buff.currentMethodScope = meth; buff.currentClassScope = (Class)meth.GetParent(); locals = buff.ReadLocalSig(sigIx); buff.currentMethodScope = null; buff.currentClassScope = null; }
internal GenericParam GetGenericParam(MethodDef meth) { Contract.Requires(meth != null); if (gPar == null) { if (isClassPar) { ClassDef methClass = (ClassDef)meth.GetParent(); gPar = methClass.GetGenericParam((int)index); } else { gPar = meth.GetGenericParam((int)index); } } return gPar; }