[Mono-dev] Feature Missing From Assembly Class

Michael Scott mscott161 at gmail.com
Fri May 28 12:50:51 EDT 2010


The System.Reflection.Assembly class is missing the LoadFrom(String)
feature where the string can be a Uri path.  Microsoft MSDN link
I have done a work around for this in my code

WebClient wc = new WebClient();
byte[] buffer = wc.DownloadData(new Uri(module.Uri));

Assembly asm = Assembly.Load(buffer);

There is another sub-feature that I have not worked out 
The Assembly.LoadFrom(string) also looks for the downloaded Assembly
from the same Uri first then looks locally.

Michael Scott
mscott161 at gmail.com

More information about the Mono-devel-list mailing list