Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: A Question about List in C# Pin
Som Shekhar28-Mar-10 20:37
Som Shekhar28-Mar-10 20:37 
AnswerRe: A Question about List in C# Pin
Tej Aj28-Mar-10 20:39
Tej Aj28-Mar-10 20:39 
GeneralRe: A Question about List in C# Pin
Mirko198028-Mar-10 23:11
Mirko198028-Mar-10 23:11 
GeneralRe: A Question about List in C# Pin
Tej Aj28-Mar-10 23:45
Tej Aj28-Mar-10 23:45 
AnswerRe: A Question about List in C# Pin
PSK_28-Mar-10 21:41
PSK_28-Mar-10 21:41 
GeneralRe: A Question about List in C# Pin
Pete O'Hanlon28-Mar-10 21:47
mvePete O'Hanlon28-Mar-10 21:47 
GeneralRe: A Question about List in C# Pin
PSK_28-Mar-10 22:44
PSK_28-Mar-10 22:44 
AnswerRe: A Question about List in C# Pin
V.28-Mar-10 23:50
professionalV.28-Mar-10 23:50 
A hint, format it better, like this:

int i=0; 
if(i > 0){  
  List<string> Age = new List<string>(); 
}
else {
  if(i==0)  {
    List<int> Age = new List<int>();  
  }
}
string strAge = Age.ToString();


This way (maybe this is personal, but for me it is easier) you'll see that Age is in fact only declared within the if and else scope. Not outside.
V.

AnswerRe: A Question about List in C# Pin
Bernhard Hiller30-Mar-10 21:35
Bernhard Hiller30-Mar-10 21:35 
QuestionMicrophone to nokia mobile communication Pin
mmdullah28-Mar-10 18:15
mmdullah28-Mar-10 18:15 
AnswerRe: Microphone to nokia mobile communication Pin
Mycroft Holmes28-Mar-10 19:38
professionalMycroft Holmes28-Mar-10 19:38 
AnswerRe: Microphone to nokia mobile communication Pin
V.28-Mar-10 20:19
professionalV.28-Mar-10 20:19 
Questionwant to create a popup window to show message on program start Pin
Alok Sharma ji28-Mar-10 15:54
Alok Sharma ji28-Mar-10 15:54 
AnswerRe: want to create a popup window to show message on program start Pin
Not Active28-Mar-10 17:13
mentorNot Active28-Mar-10 17:13 
AnswerRe: want to create a popup window to show message on program start Pin
Mycroft Holmes28-Mar-10 19:40
professionalMycroft Holmes28-Mar-10 19:40 
Questionany solutions? Pin
95ulisse28-Mar-10 4:40
95ulisse28-Mar-10 4:40 
AnswerRe: any solutions? Pin
Dan Mos28-Mar-10 4:58
Dan Mos28-Mar-10 4:58 
GeneralRe: any solutions? Pin
95ulisse29-Mar-10 3:07
95ulisse29-Mar-10 3:07 
AnswerDon't ask the same question again PinPopular
Not Active28-Mar-10 5:57
mentorNot Active28-Mar-10 5:57 
Questionwhere to put try catch block! Pin
Hussam Fattahi28-Mar-10 4:23
Hussam Fattahi28-Mar-10 4:23 
AnswerRe: wher to put try catch block! Pin
DaveyM6928-Mar-10 4:34
professionalDaveyM6928-Mar-10 4:34 
GeneralRe: wher to put try catch block! Pin
Hussam Fattahi28-Mar-10 4:54
Hussam Fattahi28-Mar-10 4:54 
GeneralRe: wher to put try catch block! Pin
DaveyM6928-Mar-10 5:07
professionalDaveyM6928-Mar-10 5:07 
GeneralRe: wher to put try catch block! Pin
Hussam Fattahi28-Mar-10 5:15
Hussam Fattahi28-Mar-10 5:15 
AnswerRe: wher to put try catch block! Pin
Eddy Vluggen28-Mar-10 4:39
professionalEddy Vluggen28-Mar-10 4:39 

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.