Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to re-factor
Message
From
15/02/2013 12:21:50
 
 
To
15/02/2013 09:14:52
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01565967
Message ID:
01566150
Views:
54
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.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform