I have a class which has public Assembly LoadedAssembly { set; get; }
var assemblyName = AssemblyName.GetAssemblyName(fullPathToDLLFile);
myClass.LoadedAssembly = Assembly.Load(assemblyName);
This class I keep under Application.Current.Properties["MyClass"].
I try to null it like Application.Current.Properties["MyClass"] = null; but it doesn't help.
I see that the loaded assembly works (It has a timer inside and it is working).
How do I can clean it?
(I don't use something like AppDomain d = AppDomain.CreateDomain("NewDomain", null, domaininfo); to load assembly.)