Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: Display a "Debug" button? Pin
leppie28-May-08 21:25
leppie28-May-08 21:25 
QuestionAdd Record to Data Table Pin
polishprogrammer28-May-08 10:09
polishprogrammer28-May-08 10:09 
QuestionProgramatically determine variable name Pin
redivider28-May-08 9:29
redivider28-May-08 9:29 
AnswerRe: Programatically determine variable name Pin
Ennis Ray Lynch, Jr.28-May-08 11:02
Ennis Ray Lynch, Jr.28-May-08 11:02 
AnswerRe: Programatically determine variable name Pin
Guffa28-May-08 12:31
Guffa28-May-08 12:31 
QuestionChecking readonly property using reflection? Pin
pankazmittal28-May-08 9:11
pankazmittal28-May-08 9:11 
AnswerRe: Checking readonly property using reflection? Pin
Ed.Poore28-May-08 10:33
Ed.Poore28-May-08 10:33 
QuestionPass Reference or Return Value Pin
Jim Warburton28-May-08 8:24
Jim Warburton28-May-08 8:24 
Which is preferred, to pass a reference or use a return value

private DateTime SetToHour(DateTime timeCheck, int hours)
{
    //code which changes timeCheck

    return timeCheck;
}

or

private void SetToHour(ref DateTime timeCheck, int hours)
 {
     //code which changes timeCheck

 }


I have done some searching online and asked around work, no definitive answer has come. Use ref for this and return for that. Mostly seems to personal choice. Thoughts???

this thing looks like it was written by an epileptic ferret
Dave Kreskowiak

AnswerRe: Pass Reference or Return Value Pin
Luc Pattyn28-May-08 8:40
sitebuilderLuc Pattyn28-May-08 8:40 
GeneralRe: Pass Reference or Return Value Pin
Jim Warburton28-May-08 8:54
Jim Warburton28-May-08 8:54 
AnswerRe: Pass Reference or Return Value Pin
User 665828-May-08 8:59
User 665828-May-08 8:59 
GeneralRe: Pass Reference or Return Value Pin
Roger Alsing28-May-08 10:46
Roger Alsing28-May-08 10:46 
GeneralRe: Pass Reference or Return Value Pin
User 665828-May-08 18:45
User 665828-May-08 18:45 
QuestionC# RPC from JAVA Pin
xlthim28-May-08 8:08
xlthim28-May-08 8:08 
AnswerRe: C# RPC from JAVA Pin
Judah Gabriel Himango28-May-08 12:32
sponsorJudah Gabriel Himango28-May-08 12:32 
QuestionFortran DLL in C#? Pin
sharp_k28-May-08 7:34
sharp_k28-May-08 7:34 
AnswerRe: Fortran DLL in C#? Pin
Judah Gabriel Himango28-May-08 12:37
sponsorJudah Gabriel Himango28-May-08 12:37 
QuestionAborting a method in c# Pin
WebMaster28-May-08 7:34
WebMaster28-May-08 7:34 
AnswerRe: Repost Pin
Gareth H28-May-08 7:41
Gareth H28-May-08 7:41 
GeneralRe: Repost Pin
WebMaster28-May-08 7:45
WebMaster28-May-08 7:45 
GeneralRe: Repost Pin
Brady Kelly28-May-08 8:35
Brady Kelly28-May-08 8:35 
GeneralRe: Repost Pin
Thomas Stockwell30-May-08 10:50
professionalThomas Stockwell30-May-08 10:50 
GeneralRe: Repost Pin
WebMaster31-May-08 7:15
WebMaster31-May-08 7:15 
AnswerRe: Aborting a method in c# Pin
Anthony Mushrow28-May-08 8:37
professionalAnthony Mushrow28-May-08 8:37 
GeneralRe: Aborting a method in c# Pin
WebMaster29-May-08 22:48
WebMaster29-May-08 22:48 

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.