I need to enumerate types in a certain namespace which physically lies in a Silverlight dll. But I have to do it on a server (asp.net app).
I have xap file, I can read it with zip and get the dll I need.
However I want not to load that assembly in memory (I think it might not get loaded as it is Silverlight app) also as long as I remember loaded assembly cannot be unloaded (dont want to junk server memory just to get few strings).
Any ideas?
EDIT : ReflectionOnlyLoad does not work for Silverlight assembly.. Any other ideas?
You should use:
This will load the assembly (without depencies) in a special context. You can not execute any methods. You can unload this assembly, without unloading the complete AppDomain.
MSDN: Assembly.ReflectionOnlyLoad