CreateInstance of Assembly

Please post public support tickets here. Note: for private support tickets, please send an email to instead.
Posts: 8
Joined: Thu Nov 24, 2016 10:42 pm

CreateInstance of Assembly

Postby Henrygo » Mon Dec 12, 2016 6:49 pm

In Silverlight project, I use the Assembly which is downloaded at a time to represent page.
The Assembly is created to an instance of a customized control.
But in CSHTML5,how to do this?
1. Assemble download
2. CreateInstance


Code: Select all

byte[] binary = Convert.FromBase64String(AssemblyBase64Content);
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream(binary);
AssemblyPart assemblyPart = new AssemblyPart();
Assembly assembly = assemblyPart.Load(memoryStream);
object obj = assembly.CreateInstance(className);

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests