An Alternative to the C# Generic new() Constraint using Lambdas

Friday, March 13, 2009 – 3:36 pm

A long while back I wrote about An alternative to the C# generic new() constraint using anonymous delegates to provide a mechanism for constructing an object which did not support a parameterless constructor. I’ve updated the same post to show an improved syntax using lambda expressions.

Post a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word