Yeah, I saw the same problem when I was trying to change names in my
methods. And There is no other way than update the base Type of
DerivedClass. (Big problem of CECIL).
Regards.
On Thu, Jun 26, 2008 at 5:55 PM, 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
> >
>
--
Jair Cazarin Villanueva
http://jaircazarin.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---