.net - How to call Assembly.Load(Bytes[]) in SL 4 app? -


i'm trying use assembly.load(byte[]) in silverlight 4 app , i'm getting methodaccessexception. far understand that's because app code transparent , method critical. there safecritical api load assembly byte array?

then want create instance of type (sl app doesn't have compile time reference it) inside dynamically loaded assembly , make instance current item datafrom control.

try this:-

  assemblypart assemblypart = new assemblypart();   assemblypart.load(new memorystream(yourbytearray)); 

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -