Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to re-factor
Message
De
15/02/2013 09:14:52
 
 
À
15/02/2013 03:30:59
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01565967
Message ID:
01566135
Vues:
64
I don't necessarily agree with that. There is good advice in there that makes for better, more maintainable code. Named parameters were introduced to C# to support COM interop, specifically Office, where some methods have a dozen or so parameters, most of them optional. Method overloading is fairly common, but I've seen people get carried away with it. In that case, the design should be rethought because the method is most likely doing too many things.

>But the focus of these guidelines is for *framework* design - AFAICS from a CLS compliant POV.
>For internal C# libraries that are not always the best solution.....
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform