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) (cf example at http://technet.microsoft.com/en-us/library/34z9ws7d.aspx). ...But it's true that I have no idea how to generate the blob value to use this method!... On 15 jan, 11:11, "Jb Evain" <[EMAIL PROTECTED]> wrote: > Hey, > > On 1/15/08, Regis <[EMAIL PROTECTED]> wrote: > > > I post an update to be incorporated into the repository (thanks in > > advance, jb!) in order to allow a Custom attribute to be created by > > giving blob data as a parameter: > > > // RVA Added > > public CustomAttribute(MethodReference ctor, byte[] blob) > > { > > m_ctor = ctor; > > m_blob = blob; > > m_resolved = false; > > } > > // End of RVA Added > > I don't mind adding this, but what's your use case? You generate the > attribute blob yourself? > > -- > Jb Evain <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
