Writing an Addin or Plugin Framework in C#
I am writing an Addin Framework in C# and I'm wondering how I can make Addin's unloadable without requiring a restart of the application. I heard of AppDomains but how do these work? Can an Addin add extendability classes and be called in the Main AppDomain by Interfaces and still be unloadable and call cleanup code resulting in those classes being removed without that Assembly being in the Main AppDomain? Or are there other methods of achieving unloadable addins, but IIRC other then AppDomain's you cannot unload an Assembly. I also want the addin engine to be compatible with Mono if possible,