aa55h
Explore posts from serversMono.Cecil TypeReference modifies TypeDefinition
But it returns TypeReference and not TypeDefinition, so i would expect to change only this reference to the class(the code it modifies is:
Creator.DoSmth()
)
I thought it would only swap the Creator for NamedCreator and not rename the class itself8 replies
Mono.Cecil TypeReference modifies TypeDefinition
before the modification: > Assembly.MainModule.Types:
{Mono.Cecil.TypeDefinition[5]}
[0]: {<Module>}
[1]: {Microsoft.CodeAnalysis.EmbeddedAttribute}
[2]: {System.Runtime.CompilerServices.RefSafetyRulesAttribute}
[3]: {Hello.Creator}
[4]: {Hello.Program}
after:
{Mono.Cecil.TypeDefinition[5]}
[0]: {<Module>}
[1]: {Microsoft.CodeAnalysis.EmbeddedAttribute}
[2]: {System.Runtime.CompilerServices.RefSafetyRulesAttribute}
[3]: {Hello.NamedCreator}
[4]: {Hello.Program}
8 replies