Metallikanz! <NoSpam---(E-Mail Removed)> wrote:
> I am not exactly sure what could be the use case where you require
> assembly level initialization.
I've wanted it a couple of times. For instance, if many plugins are
contained in an assembly, it would be nice to be able to make the
assembly itself register the plugins against the loader, rather than
make the loader find them all.
> Anyways, if you need this to be done in a single project, a dirty way
> of doing this will be to handle the AssemblyLoad event of the
> AppDomain and selectively invoking some initialization routine.
Except you'd have to subscribe to the event *before* the assembly is
loaded...
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too