Hey, On 7/4/08, Lev <[EMAIL PROTECTED]> wrote: > But for, e.g. WindowsFormsApplication1.Form1 type, the BaseType > (System.Windows.Forms.Form) is not casteable to TypeDefinition, which > results in premature recursion break and inheritance depth = 1.
That's because you get a TypeReference, which doesn't have the BaseType information. To achieve that, you'll have to get the corresponding TypeDefinition, by resolving the TypeReference into a TypeDefinition from the System.Windows.Forms assembly. I wrote such a resolver here: http://anonsvn.mono-project.com/source/trunk/mcs/tools/linker/Mono.Linker/AssemblyResolver.cs -- Jb Evain <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
