.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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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