C# 4.0: Alternative To Optional Arguments - Paulo Morgado

added by hexy
4/18/2010 5:31:31 PM

0 Kicks, 83 Views

In this tip Paulo brings up a method I use often to avoid a 'buffet' of method overloads. Encapsulation all your 'arguments' in a class and passing that in, instead of all/many arguments that may or may not be optional. It's still relevant in C# 4.0 despite its new optional arguments - though I think this post misses some sample code.


0 comments