Exemplo n.º 1
0
        IEnumerable <MethodInfo> ProducePdbWriterMethods(ReadyToRunReader r2r)
        {
            foreach (var method in _dumper.NormalizedMethods())
            {
                MethodInfo mi = new MethodInfo();
                mi.Name         = method.SignatureString;
                mi.HotRVA       = (uint)method.RuntimeFunctions[0].StartAddress;
                mi.MethodToken  = (uint)MetadataTokens.GetToken(method.MetadataReader, method.MethodHandle);
                mi.AssemblyName = method.MetadataReader.GetString(method.MetadataReader.GetAssemblyDefinition().Name);
                mi.ColdRVA      = 0;

                yield return(mi);
            }
        }