Answers for "c# how to load type of class from string"

C#
0

c# how to load type of class from string

Assembly asm = Assembly.LoadFrom("file path to your assembly");

Type typ = asm.GetType("MyOrg.MyApp.Services.Example, MyOrg.MyApp.Services");

object instance =  Activator.CreateInstance(typ);
Posted by: Guest on October-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language