Answers for "loading assembly at runtime c#"

C#
1

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();
Posted by: Guest on September-02-2020

Code answers related to "loading assembly at runtime c#"

C# Answers by Framework

Browse Popular Code Answers by Language