Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Overload Or Not To Overload. This Is The Question
Message
From
06/08/2010 14:18:28
 
 
To
06/08/2010 10:45:46
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01475465
Message ID:
01475563
Views:
33
>>Who by ? And why ?
>
>Someone asked about it at an MVP Summit. I summarized the result of the discussion.

Pretty short summary :-}

>
>>
>>Are you thinking of named parameters (but the question still applies) ?
>
>Yes, you're right. Stupid brain was multi-tasking at the time.
:-}

I guess I pretty much agree on the use of named parameters. Useful for the MS Office interfaces etc but designing a native .net method that accepts so many parameters that named parameters become useful would be counter-intuitive.

OTOH, IMO optional parameters *do* have a use and can often be a valid alternative to overloads

>>I don't think I've ever use a parameter array (except for a Main entry point) ....
>
>It isn't recommended for the reasons I gave.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform