Is there a way that I can extend asp.net to accept the markup
<c:MyControl runat="server" MyList="1,2,6,7,22" />
Where MyList is a List<int>
or List<string>
or even List<someEnum>
?
So I want asp.net to parse automatically all lists (that can be parsed) generically.
I know I could take the way around it and make MyList a string, then parse that into a list, but then I just end up with more properties than I want tbh.