Thanks Jb. This is my idea, -I have my own .net code. -I convert into byte code using cecil -Get byte code as string or something... (Is it possible?) -Use this byte code in my profiler to insert code in SetILFunctionBody.
Will this be possible.? I will use Cecil only to convert function to byte code and NOT inject the function.. Will is be possible to convert byte code to stings or something so that native code can understand? -Jasper On Jun 15, 6:26 pm, Jb Evain <[email protected]> wrote: > Hi, > > On Wed, Jun 15, 2011 at 3:23 PM, jasper <[email protected]> wrote: > > I am fairly new to Cecil. I have a doubt if this is possible in co- > > ordination with Cecil. I use CLR's profiler API. I need to insert byte > > code in the callback from the profiler API. > > No it's not. If the assembly is loaded by the runtime, it's too late > for Cecil to modify it. > > Jb -- -- mono-cecil
