BTW , I ve noticed just using set property of TypeDefinition::Name
handles all renaming stuff in an assembly.

But if I wanted to do this "manually" , how would it be ?

On 27 Haziran, 01:55, akhin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to rename an existing specific type (TypeDefinition) in a .Net
> assembly (AssemblyDefinition) . There is a special case about class
> derivation :
>
> class BaseType {...} ;
>
> class DerivedClass: BaseType
> {...} ;
>
> Assume that the type we want to rename is BaseType.  I rename class
> BaseType to class NewBaseType. (Name property in TypeDefinition ) But
> what about derivation connection in DerivedClass :
> It was derived from class with "BaseType" name. Then I changed the
> name of BaseType to NewBaseType.
> After my renaming operation , how can I update this derivation
> connection in DerivedClass so there must be
> no TypeNotLocated or any other error in runtime.
>
> Thanks.
>
> Best Regards,
> Akin Ocal
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to