예제 #1
0
 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;
 }
예제 #2
0
 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);
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }