The Non-Generic Generic Pattern [Technical Blog]
Posted: 21 Nov 2011
Updated: 21 Nov 2011
Views: 7,964
Rating: 4.00/5
Votes: 1
Popularity: 0.00
Licence: The Code Project Open License (CPOL)
Bookmarked: 2
Downloaded: 0
From time to time I've needed to use generic classes but haven't known what the generic arguments are until runtime - for example because I'm iterating over classes I've found through reflection or I've read from a database. Hopefully, the contrived example below will explain what I mean.