Beispiel #1
0
        protected override MethodSig ReadInlineSig(Instruction instr)
        {
            var token = reader.ReadUInt32();

            if (MDToken.ToTable(token) != Table.StandAloneSig)
            {
                return(null);
            }
            var sas = module.ResolveStandAloneSig(MDToken.ToRID(token));

            return(sas == null ? null : sas.MethodSig);
        }
Beispiel #2
0
        private static void FillNullSignatures(ModuleDefMD moduleDef)
        {
            uint rows;

            rows = moduleDef.TablesStream.StandAloneSigTable.Rows;
            for (uint rid = 1; rid <= rows; rid++)
            {
                StandAloneSig standAloneSig;

                standAloneSig = moduleDef.ResolveStandAloneSig(rid);
                if (standAloneSig.Signature == null)
                {
                    standAloneSig.Signature = new LocalSig(moduleDef.CorLibTypes.Int32);
                }
            }
        }
Beispiel #3
0
        protected override MethodSig ReadInlineSig(Instruction instr)
        {
            var sas = module.ResolveStandAloneSig(MDToken.ToRID(reader.ReadUInt32()), gpContext);

            return(sas == null ? null : sas.MethodSig);
        }