Hey, On Thu, Aug 19, 2010 at 4:16 PM, Wicky <[email protected]> wrote: > If member reference has generic parameter, it will never be added to > metadata, so always get new instantiation. > > MemberReference GetMemberReference (uint rid) > { > InitializeMemberReferences (); > var member = metadata.GetMemberReference (rid); > if (member != null) > return member; > member = ReadMemberReference (rid); > if (!member.ContainsGenericParameter) <== if I remark this line, > seems all member references renamed > metadata.AddMemberReference (member); > return member; > } > > Could you tell why there is a checking there, and any impact if I > remark that line?
Best is that you simple run the tests without this line, you'll see which one breaks. -- Jb Evain <[email protected]> -- -- mono-cecil
