Posted: 22 Mar 2011
Updated: 22 Mar 2011
Licence: The Code Project Open License (CPOL)
Another approach is to use a generic delegate-factory class. Essentially, the class has a field of generic type, a delegate field which accepts an argument of that type, an parameterless instance method which accepts an argument of that type and invokes the delegate with it, and a static method...