Beef up params in C# 5 to solve Lambda Abuse

added by KodefuGuru
4/8/2010 2:58:53 PM

0 Kicks, 66 Views

C# 4 introduced named and optional method parameters, which does a fine job of cleaning up method overloads. But a piece of the puzzle was left out. The params keyword could have been combined with named parameters to make it even stronger and address issues others have overcome by abusing other language features. To be fair, params works great with optional parameters. However, it is nearly unusable with named parameters.


0 comments