Hey, On 1/15/08, Regis <[EMAIL PROTECTED]> wrote: > Yes, in fact as I am porting the System.Reflection.Emit on Compact > Framework, I try to create all objects and methods that are available > in the MS library, for example: > > public void AttributeBuilder.SetCustomAttribute(ConstructorInfo con, > byte[] binaryAttribute)
Am not sure you should aim at 100% API compatiblity in a first place, and stuff like this is more that secondary, but heh, that's your project. I added this one to SVN, but there will be stuff in S.R.E that Cecil can't deal with. (ModuleBuilder.DefineUnmanagedResource comes to my mind). But it's ok, simply throw a NotSupportedException in that kind of cases. -- Jb Evain <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
