コード例 #1
0
ファイル: MDElements.cs プロジェクト: dbremner/perwapi
 internal override void Resolve(PEReader buff)
 {
     theClass = (ClassDef)buff.GetElement(MDTable.TypeDef, classIx);
     if (tabIx == MDTable.EventMap)
     {
         for (uint i = elemIx; i < endIx; i++)
             theClass.AddEvent((Event)buff.GetElement(MDTable.Event, i));
     }
     else if (tabIx == MDTable.PropertyMap)
     {
         for (uint i = elemIx; i < endIx; i++)
             theClass.AddProperty((Property)buff.GetElement(MDTable.Property, i));
     }
     else
     { // must be nested class -- already done
         //ClassDef parent = (ClassDef)buff.GetElement(MDTable.TypeDef,elemIx);
         //parent.MakeNested(theClass);
     }
 }