Click here to Skip to main content
15,917,644 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to auto-select a newly added row in the DataGrid? Pin
Donnelly James21-Apr-10 4:16
Donnelly James21-Apr-10 4:16 
AnswerRe: How to auto-select a newly added row in the DataGrid? Pin
Donnelly James23-Apr-10 5:10
Donnelly James23-Apr-10 5:10 
AnswerRe: How to auto-select a newly added row in the DataGrid? [modified] Pin
sancyclops4-Jan-12 17:07
sancyclops4-Jan-12 17:07 
Questionerror message when using out parameters Pin
will kirkby16-Apr-10 8:45
will kirkby16-Apr-10 8:45 
AnswerRe: error message when using out parameters Pin
Not Active16-Apr-10 8:50
mentorNot Active16-Apr-10 8:50 
GeneralRe: error message when using out parameters Pin
PIEBALDconsult16-Apr-10 8:56
mvePIEBALDconsult16-Apr-10 8:56 
GeneralRe: error message when using out parameters Pin
Not Active16-Apr-10 9:19
mentorNot Active16-Apr-10 9:19 
AnswerRe: error message when using out parameters PinPopular
Luc Pattyn16-Apr-10 9:01
sitebuilderLuc Pattyn16-Apr-10 9:01 
Hi,

you don't need out nor ref, as all you are passing is an object, in this case an array of chars. objects get passed by reference, which means both parties (caller and callee) can access the object and modify it.

FYI: without out or ref the callee can not replace the object by a new object (actually, he can, but it will not affect the caller). But that is not what the name of the method implies, when it says ClearBoard it sounds like it is clearing an existing board.

If OTOH the method were intended to create a new and cleared board, I would call it CreateClearedBoard, and the proper way would be to make that the return object, dropping the void attribute.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


modified on Friday, April 16, 2010 3:23 PM

QuestionCompareMethod.Binary Equivalent method in C#? Pin
toto_201016-Apr-10 6:45
toto_201016-Apr-10 6:45 
GeneralRe: CompareMethod.Binary Equivalent method in C#? Pin
harold aptroot16-Apr-10 6:50
harold aptroot16-Apr-10 6:50 
AnswerRe: CompareMethod.Binary Equivalent method in C#? Pin
Luc Pattyn16-Apr-10 7:26
sitebuilderLuc Pattyn16-Apr-10 7:26 
QuestionPassword + Security + Keylogger Pin
Omoniyi Ogunderu16-Apr-10 6:01
Omoniyi Ogunderu16-Apr-10 6:01 
GeneralRe: Password + Security + Keylogger Pin
harold aptroot16-Apr-10 6:24
harold aptroot16-Apr-10 6:24 
QuestionHow to add new row to gridview before fill it from datatable? Pin
lamiaa_12316-Apr-10 5:59
lamiaa_12316-Apr-10 5:59 
AnswerRe: How to add new row to gridview before fill it from datatable? Pin
sanforjackass16-Apr-10 6:48
sanforjackass16-Apr-10 6:48 
GeneralRe: How to add new row to gridview before fill it from datatable? Pin
lamiaa_12316-Apr-10 7:38
lamiaa_12316-Apr-10 7:38 
GeneralRe: How to add new row to gridview before fill it from datatable? Pin
sanforjackass16-Apr-10 8:00
sanforjackass16-Apr-10 8:00 
GeneralRe: How to add new row to gridview before fill it from datatable? Pin
lamiaa_12316-Apr-10 9:31
lamiaa_12316-Apr-10 9:31 
GeneralRe: How to add new row to gridview before fill it from datatable? Pin
sanforjackass16-Apr-10 9:48
sanforjackass16-Apr-10 9:48 
QuestionFairly simple .NET Remoting scenario but problematic [modified] Pin
Yoyosch16-Apr-10 5:50
Yoyosch16-Apr-10 5:50 
AnswerRe: Fairly simple .NET Remoting scenario but problematic Pin
Michael J. Eber16-Apr-10 20:48
Michael J. Eber16-Apr-10 20:48 
QuestionOverlay sound onto another sound Pin
Ashley Staggs16-Apr-10 4:17
Ashley Staggs16-Apr-10 4:17 
AnswerRe: Overlay sound onto another sound Pin
Thesisus16-Apr-10 8:10
Thesisus16-Apr-10 8:10 
Question[C#] Delegate problem Pin
Ahmed Han16-Apr-10 4:01
Ahmed Han16-Apr-10 4:01 
AnswerRe: [C#] Delegate problem Pin
Ian Shlasko16-Apr-10 4:30
Ian Shlasko16-Apr-10 4:30 

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.