Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sliding Dialog box Pin
ekynox19-Dec-05 10:17
ekynox19-Dec-05 10:17 
GeneralRe: Sliding Dialog box Pin
VPMahank20-Dec-05 3:47
VPMahank20-Dec-05 3:47 
QuestionTelnet Protocol Pin
smsulliva19-Dec-05 5:44
smsulliva19-Dec-05 5:44 
Question.NET 2.0 Serial Ports Pin
Alan Staton19-Dec-05 5:30
Alan Staton19-Dec-05 5:30 
AnswerRe: .NET 2.0 Serial Ports Pin
c#guy381119-Dec-05 7:17
c#guy381119-Dec-05 7:17 
GeneralRe: .NET 2.0 Serial Ports Pin
Alan Staton19-Dec-05 7:32
Alan Staton19-Dec-05 7:32 
GeneralRe: .NET 2.0 Serial Ports Pin
Alan Staton20-Dec-05 9:06
Alan Staton20-Dec-05 9:06 
QuestionFxCop - Passing by Ref or Out Pin
MrEyes19-Dec-05 5:06
MrEyes19-Dec-05 5:06 
I have recently started to used Microsofts FxCop to validate code:

http://www.gotdotnet.com/team/fxcop/[^]

If you havent come across this application before, it is a code analysis tool that validates assemblies for conformance to Microsofts .NET Framework design guidelines.

So far prooved itself to be incredibly useful and in some situation informative. That being said there is one item is raises alerts on that I dont necessarily agree with.

If Ref/Out parameters are used FxCop raises the following alert:

"Using out parameters might indicate a design flaw. Although there are legitimate times to use out parameters, their use frequently indicates a design that does not conform to the design guidelines for managed code."

http://www.gotdotnet.com/team/fxcop/docs/rules.aspx?version=1.32&url=/Design/AvoidOutParameters.html[^]

Each alert has an associated webpage (link above) which seems to inidcate that the main problem is that usage of ref and out is not widely understood and should therefore be avoided. Reading between this lines this says to me that if somebody working with the code is unlikely to understand usage then it should be avoided. IMHO if somebody is working on the code and is unlikely to understand then they should learn.

Anyway, I should step away from that rant, what is your opinion of using ref/out parameters?
AnswerRe: FxCop - Passing by Ref or Out Pin
Judah Gabriel Himango19-Dec-05 5:26
sponsorJudah Gabriel Himango19-Dec-05 5:26 
GeneralRe: FxCop - Passing by Ref or Out Pin
Jared Parsons19-Dec-05 6:27
Jared Parsons19-Dec-05 6:27 
AnswerRe: FxCop - Passing by Ref or Out Pin
Daniel Turini19-Dec-05 5:28
Daniel Turini19-Dec-05 5:28 
AnswerRe: FxCop - Passing by Ref or Out Pin
Guffa19-Dec-05 9:03
Guffa19-Dec-05 9:03 
QuestionHowto raise the GotFocus event from inside a custom control ? Pin
smoitry19-Dec-05 5:05
smoitry19-Dec-05 5:05 
AnswerRe: Howto raise the GotFocus event from inside a custom control ? Pin
microsoc19-Dec-05 15:15
microsoc19-Dec-05 15:15 
GeneralRe: Howto raise the GotFocus event from inside a custom control ? Pin
smoitry19-Dec-05 20:26
smoitry19-Dec-05 20:26 
GeneralRe: Howto raise the GotFocus event from inside a custom control ? Pin
microsoc20-Dec-05 14:34
microsoc20-Dec-05 14:34 
Questionunreachable objects Pin
adafaaa19-Dec-05 5:03
adafaaa19-Dec-05 5:03 
AnswerRe: unreachable objects Pin
J4amieC19-Dec-05 5:19
J4amieC19-Dec-05 5:19 
AnswerRe: unreachable objects Pin
Dave Kreskowiak19-Dec-05 8:20
mveDave Kreskowiak19-Dec-05 8:20 
QuestionSystem.Net.WebClient loses international characters Pin
malharone19-Dec-05 4:56
malharone19-Dec-05 4:56 
Questiondatagrid mousedown Pin
melanieab19-Dec-05 4:43
melanieab19-Dec-05 4:43 
AnswerRe: datagrid mousedown Pin
microsoc19-Dec-05 16:57
microsoc19-Dec-05 16:57 
GeneralRe: datagrid mousedown Pin
melanieab20-Dec-05 10:58
melanieab20-Dec-05 10:58 
QuestionTemplate Matching Pin
Seraphin19-Dec-05 4:19
Seraphin19-Dec-05 4:19 
AnswerRe: Template Matching Pin
Curtis Schlak.19-Dec-05 18:31
Curtis Schlak.19-Dec-05 18:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.