Can I get class properties if i have class name as string? My entities are in class library project and I tried different methods to get type and get assembly but i am unable to get the class instance.
var obj = (object)"User";
var type = obj.GetType();
System.Activator.CreateInstance(type);
object oform;
var clsName = System.Reflection.Assembly.GetExecutingAssembly().CreateInstance("[namespace].[formname]");
Type type = Type.GetType("BOEntities.User");
Object user = Activator.CreateInstance(type);
nothing is working
Usertype is not in an assembly you already reference? Because then you should simply usevar type = typeof(User);as your first step.