示例#1
0
 internal void ReadMethodImpls(ClassDef theClass, uint classIx)
 {
     Contract.Requires(theClass != null);
     SetElementPosition(MDTable.InterfaceImpl, 0);
     for (int i = 0; (i < tableLengths[(int)MDTable.MethodImpl]); i++)
     {
         uint clIx = GetIndex(MDTable.TypeDef);
         uint bodIx = GetCodedIndex(CIx.MethodDefOrRef);
         uint declIx = GetCodedIndex(CIx.MethodDefOrRef);
         if (clIx == classIx)
         {
             MethodImpl mImpl = new MethodImpl(this, theClass, bodIx, declIx);
             theClass.AddMethodImpl(mImpl);
             tables[(int)MDTable.MethodImpl][i] = mImpl;
         }
     }
 }