Optimization and Generics - The new() constraint

added by dpeterson
8/23/2011 4:04:20 PM

129 Views

Jon Skeet shares with us some interesting tidbits about the cost of new() with generics. While this isn't a problem most of the time, in scenarios where speed is a necessity, using a delegate provider is much faster than calling new() when working with generic types.


0 comments