Answers for "load from specific assembly"

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

C# Answers by Framework

Browse Popular Code Answers by Language