The Non-Generic Generic Pattern [Technical Blog]
Posted: 21 Nov 2011
Updated: 21 Nov 2011
Licence: The Code Project Open License (CPOL)
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.