[Mono-dev] Feature Missing From Assembly Class

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


Hello,

The System.Reflection.Assembly class is missing the LoadFrom(String)
feature where the string can be a Uri path.  Microsoft MSDN link
(http://msdn.microsoft.com/en-us/library/b61s44e8%28v=VS.100%29.aspx)
I have done a work around for this in my code

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

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