C# 4.0: Alternative To Optional Arguments - Paulo Morgado(weblogs.asp.net)
submitted by
hexy(325) 2 years, 1 month ago
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.
|category: C#
|Views: 5
tags:
C# another
Everyones tags:
Your Tags: