On 1/30/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> A managed resource

When you load an assembly, its MainModule has a Resources property
which contains all the managed resources.

You can simply add there a new resource, depending on the kind of
resource you want.

It can be either a:

* AssemblyLinkedResource: if the resource is located inside another assembly.
* LinkedResource: if the resource is a file outside the assembly.
* EmbeddedResource: if you want the resource to be contained inside
the assembly.

I guess you want the later, so you can simply create a new
EmbeddedResource, fill its Data byte array, and save the assembly
back.

-
Jb Evain  <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to