コード例 #1
0
ファイル: PERWAPI.cs プロジェクト: nomit007/f4
 internal GenericParam GetGenericParam(MethodDef meth)
 {
     if (gPar == null) {
         if (isClassPar) {
             ClassDef methClass = (ClassDef)meth.GetParent();
             gPar = methClass.GetGenericParam((int)index);
         } else {
             gPar = meth.GetGenericParam((int)index);
         }
     }
     return gPar;
 }
コード例 #2
0
ファイル: PERWAPI.cs プロジェクト: nomit007/f4
 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;
 }