Here is scenario
string dataTypeName = "Employee";
where Employee is class and i want to make an object of it.
Type EmployeeObject = Type.GetType(dataTypeName);
Now i want to instantiate an object of Employee like this
EmployeeObject emp1 = new Employee();
Is it Possible. But this method is not working. I don't have strong idea of Reflection. Please Guide me.
typeof(Employee).AssemblyQualifiedName? What is the need to getEmployeeObjectfrom the name, and then instansiate it with a literal type anyway - why not just use the literal type in the first place?