Thanks, .OverrideCollection is the clue i needed. I am trying to emit various things, because they seem simpler and stabler with cecil. I tested Runsharp but I cannot convince the tool to generate a public constructor, I get an exception for that simple thing...
You said: "Come on, you can be more resourceful! " Yes, I am little bit tired ... On Jan 11, 2008 3:57 PM, Jb Evain <[EMAIL PROTECTED]> wrote: > > Man, > > On 1/11/08, Liviu U <[EMAIL PROTECTED]> wrote: > > There is unfortunately no InterfaceDefinition object! > > Come on, you can be more resourceful! If you had a single look at the > InterfaceCollection, you would have seen that it's a collection of > TypeReferences. > > So you can simply add an imported type to that collection. > > > but how to associate the methods of the interface with methods of the class? > > Basically by either their signature (name + return type + parameters), > or by specifying the method of the interface you're implementing in > the .OverrideCollection of the method. > > -- > > Jb Evain <[EMAIL PROTECTED]> > > > > --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
