Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2003 Server
So you think these guidelines are *always* the best solution ?
I admit I was thinking more in terms of 'ref' and 'out' . Tend to agree re: named parameters.
>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.....
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement