I would like to define the following control:
public partial class ObjectSelectorControl : UserControl where T : class
The proble
I don't know at which point (with which C#/.NET/VS verison update), but now it is possible to create generic control the same way you create any other generic class.
If you create your UserControl in VS the standard way (i.e. by adding it through GUI), you simply add in both parts of class declaration ("base" class code and the designer managed file). Actually, that is what you have in your quoted code.