add manifest resources at runtime

B

Bamse

hello,

it is well known that manifest resources (strings, pictures & ...) can be
added at design time, compiled into an assembly and used/read at runtime
(assembly.GetManifestResourceStream(string) );

is there a way to ADD them at runtime? (i suppose that recompiling the
assembly is a must in this scenario)
like: i start the app, compute some value, (current date, par example) and
add it to the assembly and recompile, to be used some other time;

thank you,
Daniel
 
F

Fitim Skenderi

If you want to do that from runtime you need to look at the reflection and
compiler services. Check System.Reflection and Microsoft.CSharp namespaces.

hope this helps

Fitim Skenderi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top