PERWAPI.PEReader.ReadMethSpecSig C# (CSharp) Méthode

ReadMethSpecSig() private méthode

private ReadMethSpecSig ( uint blobIx ) : Type[]
blobIx uint
Résultat Type[]
        internal Type[] ReadMethSpecSig(uint blobIx)
        {
            //ClassDef currClass, Method currMeth, uint blobIx) {
            blob.GoToIndex(blobIx);
            uint blobSize = blob.ReadCompressedNum();
            if (blob.ReadByte() != MethodSpec.GENERICINST)
                throw new Exception("Not a MethodSpec signature");
            return GetListOfType(); //currClass,currMeth);
        }

Usage Example

Exemple #1
0
 internal override void Resolve(PEReader buff)
 {
     methParent = (Method)buff.GetCodedElement(CIx.MethodDefOrRef,parentIx);
     buff.currentMethodScope = methParent;  // set scopes - Fix by CK
     buff.currentClassScope = (Class)methParent.GetParent();
     instTypes = buff.ReadMethSpecSig(instIx);
     this.unresolved = false;
     buff.currentMethodScope = null;
     buff.currentClassScope = null;
 }