Click here to Skip to main content
15,611,179 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best method for syntax highlighting Pin
Adam R Harris14-Jul-09 10:32
Adam R Harris14-Jul-09 10:32 
QuestionPassing a pointer to array of structs via P/Invoke Pin
Klempie14-Jul-09 6:29
Klempie14-Jul-09 6:29 
Questioncustomizing a ToolStripTextBox Pin
Jim Crafton14-Jul-09 5:38
Jim Crafton14-Jul-09 5:38 
AnswerRe: customizing a ToolStripTextBox Pin
Henry Minute14-Jul-09 5:53
Henry Minute14-Jul-09 5:53 
GeneralRe: customizing a ToolStripTextBox Pin
Jim Crafton14-Jul-09 6:04
Jim Crafton14-Jul-09 6:04 
GeneralRe: customizing a ToolStripTextBox Pin
DaveyM6914-Jul-09 6:26
professionalDaveyM6914-Jul-09 6:26 
Questionreturn string Pin
AndyInUK14-Jul-09 5:22
AndyInUK14-Jul-09 5:22 
AnswerRe: return string Pin
Simon P Stevens14-Jul-09 5:28
Simon P Stevens14-Jul-09 5:28 
Either by returning from inside the if statement like this:
public static string test(Guid ID)
{
  if (a == n )
  {
    string abc = x.group;
    return abc;
  }
  else
  {
    return String.Empty;
  }
}

Or by creating the string and setting a default value first:
public static string test(Guid ID)
{
  string abc = String.Empty;
  if (a == n )
  {
    abc = x.group;
  }
  return abc;
}


Simon

GeneralRe: return string Pin
AndyInUK14-Jul-09 5:36
AndyInUK14-Jul-09 5:36 
AnswerRe: return string Pin
Luc Pattyn14-Jul-09 5:42
sitebuilderLuc Pattyn14-Jul-09 5:42 
GeneralRe: return string Pin
AndyInUK14-Jul-09 6:19
AndyInUK14-Jul-09 6:19 
GeneralRe: return string Pin
Luc Pattyn14-Jul-09 6:27
sitebuilderLuc Pattyn14-Jul-09 6:27 
GeneralRe: return string Pin
musefan14-Jul-09 7:10
musefan14-Jul-09 7:10 
GeneralRe: return string Pin
Joe Woodbury14-Jul-09 6:48
professionalJoe Woodbury14-Jul-09 6:48 
GeneralRe: return string Pin
musefan14-Jul-09 6:57
musefan14-Jul-09 6:57 
GeneralRe: return string Pin
Luc Pattyn14-Jul-09 7:04
sitebuilderLuc Pattyn14-Jul-09 7:04 
GeneralRe: return string [modified] Pin
Joe Woodbury14-Jul-09 7:07
professionalJoe Woodbury14-Jul-09 7:07 
GeneralRe: return string Pin
AndyInUK15-Jul-09 5:20
AndyInUK15-Jul-09 5:20 
GeneralRe: return string Pin
Joe Woodbury15-Jul-09 5:35
professionalJoe Woodbury15-Jul-09 5:35 
JokeRe: return string Pin
musefan14-Jul-09 7:18
musefan14-Jul-09 7:18 
GeneralRe: return string Pin
Luc Pattyn14-Jul-09 7:45
sitebuilderLuc Pattyn14-Jul-09 7:45 
AnswerRe: return string Pin
sskset14-Jul-09 7:52
sskset14-Jul-09 7:52 
Questionregarding grab image from mobile camera?? Pin
Tridip Bhattacharjee14-Jul-09 2:34
professionalTridip Bhattacharjee14-Jul-09 2:34 
AnswerRe: regarding grab image from mobile camera?? Pin
DoctorMick14-Jul-09 5:19
DoctorMick14-Jul-09 5:19 
AnswerRe: regarding grab image from mobile camera?? Pin
Simon P Stevens14-Jul-09 5:25
Simon P Stevens14-Jul-09 5:25 

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.