I have four assemblies, ModuleStatic, Loader and ModuleA and ModuleB, all of them are DLL besides Loader which is an executable.
In DLL ModuleStatic:
public class ModuleStatic {
public static string Foo { get; set; } = "Foo";
}
In Loader, ModuleA and ModuleB will be loaded through Assembly.Load and AppDomain, to domA and domB respectively. If ModuleA modified the ModuleStatic.Foo variable, will the ModuleB, which is in domB, receive the modification?
Aucun commentaire:
Enregistrer un commentaire