Hi, I am currently porting the obfucation tool Obfuscar to the new
0.9.4 version of Cecil and I am stuck with a problem.

After renaming the method names in the type definition, all references
to those methods have to be updated.
This is done by iterating GetMemberReferences() and changing the .Name
property of the MethodReference instances. This works so far, but only
for methods which do not use generic types on their parameter or
return values. In this case calling GetMemberReferences() again and
searching for the just renamed method shows that a new instance of
MethodReference was created for this method and the name was not
updated. Also the saved assembly does not have this change.

I added MethodRenameTester.zip to the files section of this group.
This sample program renames all TestMethod* method names to
NewTestMethod* on the TextExe.exe and tries to update the references.

Is this expected behavior and is there a way to work around this?

-- 
--
mono-cecil

Reply via email to