Click here to Skip to main content
15,915,864 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: FxCop - Passing by Ref or Out Pin
Judah Gabriel Himango19-Dec-05 5:26
sponsorJudah Gabriel Himango19-Dec-05 5:26 
They're useful when you want to return more than one result, and where the results are of different types. Using output parameters in this situation is the only way to keep strongly typed return values.

Ref parameter are useful if you want to modify a value type or modify the object referred to in the argument. I find the latter sometimes difficult to keep your mind wrapped around, so I try to avoid situations where I need to pass a ref to a reference type.

It seems to me there are some FxCop rules that are little more than generalized suggestions, and need to be taken with a grain of salt. It seems this rules is a good example; rule is probably the wrong word in this case, after all, there are many places in the framework class library where ref & out are used.

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Bought a House!
Judah Himango


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 
QuestionProblem in Crystal Report open in Windows XP Pin
joy_priyank19-Dec-05 4:08
joy_priyank19-Dec-05 4:08 

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.