When using the operator typeof we provide a type name to obtain a System.Type instance:
System.Type t = typeof(System.Int32)
or simply:
Type t = typeof(int)
What is the exact name/nature of the parameter passed to the operator?.
How can I build a collection of such "type names":
???[] typeNames = { System.Int32, System.String };
foreach (??? tn in typeNames) aMethod(tn);
A type name - not as a string, but literally present in the code.
You can't, but you could use
typeofmultiple times:If you're actually interested in the names, you can use the
nameofoperator: