Using Generic Parameter as an Attribute constructor parameter

31 בOctober 2008

Hi all, it's been long while since the last time I wrote (I just wasn't in the mood....). recently I encountered something interesting in my opinion related to generic so I wanted to share it and hear your comments. It all started with a simple task: my task was to implement generic custom control (Win Forms) that contains PropertyGrid and sets the selected object property to given object. the additional requirement was that in case the object has default constructor allowing creating new instance on the given object. the control implementation is very simple (my example is in form...
tags: ,
no comments