Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Overload Or Not To Overload. This Is The Question
Message
De
06/08/2010 14:18:28
 
 
À
06/08/2010 10:45:46
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01475465
Message ID:
01475563
Vues:
34
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform