c# – System.Reflection get class instance

Question:

Which method in Reflection can give me an empty class instance?

Answer:

Activator.CreateInstance

var instance = (ObjectType)Activator.CreateInstance(typeof(ObjectType));
Scroll to Top