Use the operator that is used to get for the type. typeofSystem.Type
Type[] x = { typeof(className) };
EDIT:
In response to your comment: System.Typeuse the appropriate overload to create an instance of the type from . Activator.CreateInstance
eg.
Type t = typeof(int);
object o = Activator.CreateInstance(t);
In your case, since you know the base type of the class, you can, of course, pass the return value to the base type.
source
share