Actually, come to think of it, if we expose a couple of simple methods
to get/add strings from/to the string heap, wouldn't a user of the
library be able to write a raw byte array with those methods + the
methods on ModuleDefinition? Is there anything they wouldn't be able
to get the metadata token of?

Assuming this is enough, we could simply have a MethodBody.RawData
property of type byte[].

On Fri, Mar 28, 2014 at 9:46 AM, Alex Rønne Petersen <[email protected]> wrote:
> This may sound a bit odd, but it's for implementing the API to provide
> raw access to the IL stream. Since some opcodes can have inline
> strings as operands, there has to be a (public) way to resolve raw
> tokens to those strings in the string heap.
>
> So, does such a thing exist? I know of the ModuleDefinition methods,
> but they only return IMetadataTokenProviders...
>
> Regards,
> Alex

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to