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

C#

 
QuestionChange the size in dataGridView Pin
SajjadZare9-Jan-10 5:03
SajjadZare9-Jan-10 5:03 
AnswerRe: Change the size in dataGridView Pin
Luc Pattyn9-Jan-10 7:08
sitebuilderLuc Pattyn9-Jan-10 7:08 
QuestionC# Override CheckedListBox Pin
ikurtz9-Jan-10 4:58
ikurtz9-Jan-10 4:58 
AnswerRe: C# Override CheckedListBox Pin
Luc Pattyn9-Jan-10 5:09
sitebuilderLuc Pattyn9-Jan-10 5:09 
GeneralRe: C# Override CheckedListBox Pin
ikurtz9-Jan-10 5:15
ikurtz9-Jan-10 5:15 
QuestionBreak Recursive Function Pin
dataminers9-Jan-10 4:54
dataminers9-Jan-10 4:54 
AnswerRe: Break Recursive Function Pin
Luc Pattyn9-Jan-10 5:12
sitebuilderLuc Pattyn9-Jan-10 5:12 
AnswerRe: Break Recursive Function Pin
Nicholas Butler9-Jan-10 5:12
sitebuilderNicholas Butler9-Jan-10 5:12 
Most recursive methods have two parts: one that handles the deepest recursion and the normal path that recurses. You've done this in your example, but I would write:

C#
string MyFunction( string val )
{
  if ( val == "test" ) return val; // end of recursion

  // recursive case

  string xyz = ...

  return MyFunction( xyz );
}



Nick

----------------------------------
Be excellent to each other Smile | :)

AnswerRe: Break Recursive Function Pin
Roger Wright9-Jan-10 21:31
professionalRoger Wright9-Jan-10 21:31 
GeneralRe: Break Recursive Function Pin
dataminers9-Jan-10 22:08
dataminers9-Jan-10 22:08 
QuestionLooking for pointers... Pin
JollyMansArt9-Jan-10 4:12
JollyMansArt9-Jan-10 4:12 
AnswerRe: Looking for pointers... Pin
Nicholas Butler9-Jan-10 5:01
sitebuilderNicholas Butler9-Jan-10 5:01 
QuestionReset sql column identity value from c# Pin
teknolog1239-Jan-10 2:14
teknolog1239-Jan-10 2:14 
AnswerRe: Reset sql column identity value from c# Pin
Eddy Vluggen9-Jan-10 2:27
professionalEddy Vluggen9-Jan-10 2:27 
GeneralRe: Reset sql column identity value from c# Pin
teknolog1239-Jan-10 3:14
teknolog1239-Jan-10 3:14 
GeneralRe: Reset sql column identity value from c# Pin
Eddy Vluggen9-Jan-10 3:52
professionalEddy Vluggen9-Jan-10 3:52 
QuestionPrint Microsoft Report Pin
Thaer Hamael9-Jan-10 1:05
Thaer Hamael9-Jan-10 1:05 
AnswerRe: Print Microsoft Report Pin
OriginalGriff9-Jan-10 2:09
mveOriginalGriff9-Jan-10 2:09 
QuestionC# Pin
Suniel159-Jan-10 0:25
Suniel159-Jan-10 0:25 
AnswerRe: C# Pin
DaveyM699-Jan-10 0:58
professionalDaveyM699-Jan-10 0:58 
AnswerRe: C# Pin
OriginalGriff9-Jan-10 1:01
mveOriginalGriff9-Jan-10 1:01 
QuestionWorking with Crystal Reports and Forms Pin
sorooshk8-Jan-10 21:40
sorooshk8-Jan-10 21:40 
AnswerRe: Working with Crystal Reports and Forms Pin
Saksida Bojan8-Jan-10 22:03
Saksida Bojan8-Jan-10 22:03 
GeneralRe: Working with Crystal Reports and Forms Pin
sorooshk8-Jan-10 22:16
sorooshk8-Jan-10 22:16 
AnswerRe: Working with Crystal Reports and Forms Pin
Said Ali Jalali9-Jan-10 2:34
Said Ali Jalali9-Jan-10 2:34 

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.