[Mono-list] C# interoperation different behavior in Windows a nd Linux

Ian Norton ian.norton-badrul at thales-esecurity.com
Sun Aug 14 05:52:08 EDT 2011


On Sun, Aug 14, 2011 at 10:43:12AM +0100, raincloud wrote:
> But then, how may I reload a plug-in ?
> (And why does it work with MS compiler ? Compilation flags ?)
> I intended to send a DLL file to remotely running service in order to
> slightly change functionality without breaking the whole infrastructure.
> Thanks.

Well, you cannot directly unload an assembly, but you can unload a whole
appdomain, you could load your assembly inside and unload it when you want to
replace the assembly.

Another possibility (which is i think how other .net plugins work) is to rely
on interfaces and load a whole new assembly with a type that implements your
plugin interface(s). 

Ian

> --
> View this message in context: http://mono.1490590.n4.nabble.com/C-interoperation-different-behavior-in-Windows-and-Linux-tp3739710p3742629.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list