The problem is that none of the things in Mono.Cecil.Metadata appear
to be exposed in the public API, as far as I can see.

Strings can be referenced by metadata tokens as is done when writing
inline strings for instructions:
https://github.com/jbevain/cecil/blob/master/Mono.Cecil.Cil/CodeWriter.cs#L247

On Fri, Mar 28, 2014 at 7:54 PM, Yves Goergen <[email protected]> wrote:
> I haven't looked into it very closely, but did you find the StringHeap class
> in the Mono.Cecil.Metadata namespace? From the name that sound like it could
> do what you want. Also IIRC the string heap is not addressed by metadata
> tokens but only by index (byte location). According to the code, strings are
> UTF8-encoded zero-terminated bytes on the heap, accessed by start position.
> You could follow the references of that class (in the Cecil source code) to
> find out how you may be able to make use of it.
>
> --
> --
> --
> 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.

-- 
-- 
--
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