Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# loading assembly at runtime

using System.Reflection;

var dll = Assembly.LoadFile(@"C:assembly.dll"); // full path requied
Type type = dll.GetType("myNamespace.myClass");
dynamic c = Activator.CreateInstance(type);
c.myPublicMethod();
 
PREVIOUS NEXT
Tagged: #loading #assembly #runtime
ADD COMMENT
Topic
Name
3+2 =