I want to declare a list containing types basically:
List types = new List() {Button, TextBox };
is this possible?<
Try this:
List types = new List() { typeof(Button), typeof(TextBox) };
The typeof() operator is used to return the System.Type of a type.
typeof()
System.Type
For object instances you can call the GetType() method inherited from Object.
GetType()