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

C#

 
AnswerRe: Event-Based programming Pin
Pete O'Hanlon28-Mar-11 22:13
mvePete O'Hanlon28-Mar-11 22:13 
GeneralRe: Event-Based programming Pin
reversing28-Mar-11 22:19
reversing28-Mar-11 22:19 
GeneralRe: Event-Based programming Pin
Pete O'Hanlon28-Mar-11 22:46
mvePete O'Hanlon28-Mar-11 22:46 
AnswerRe: Event-Based programming Pin
PIEBALDconsult29-Mar-11 2:45
mvePIEBALDconsult29-Mar-11 2:45 
QuestionC# Warnings Pin
karthikgowda28-Mar-11 21:04
karthikgowda28-Mar-11 21:04 
AnswerRe: C# Warnings Pin
Pritesh Aryan28-Mar-11 21:14
Pritesh Aryan28-Mar-11 21:14 
AnswerRe: C# Warnings Pin
Pete O'Hanlon28-Mar-11 22:18
mvePete O'Hanlon28-Mar-11 22:18 
AnswerRe: C# Warnings Pin
OriginalGriff28-Mar-11 22:23
mveOriginalGriff28-Mar-11 22:23 
The first thing to do is to look at each one in turn: and treat each warning as if it was an error - it probably is, and will cause other problems later when you run your code.

Compile your app. Look at the error pane. Double click on the first warning - VS will take you to the line involved.

The first one is obvious: you have declared a variable, but VS thinks it can see a path by which it can be used without being set first. Normally, this is because either you haven't set it at all, or there is a logic condition which sets it one of two ways, but VS thinks it might not get to one of the two. For example:
private int GetTotal(int[] values)
   {
   int total;
   foreach(int value in count)
      {
      total = Sum(value);
      }
   return total;
   }
You know that values will never be empty - but VS doesn't.

The other errors are harder, without knowing more.
Look at each line, and try to see what VS is talking about!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Manfred R. Bihy: "Looks as if OP is learning resistant."

GeneralRe: C# Warnings Pin
Pete O'Hanlon28-Mar-11 22:50
mvePete O'Hanlon28-Mar-11 22:50 
GeneralRe: C# Warnings Pin
OriginalGriff28-Mar-11 22:55
mveOriginalGriff28-Mar-11 22:55 
GeneralRe: C# Warnings Pin
karthikgowda29-Mar-11 6:20
karthikgowda29-Mar-11 6:20 
AnswerRe: C# Warnings Pin
Ganesh Kumar Kaki13-Apr-11 2:26
Ganesh Kumar Kaki13-Apr-11 2:26 
QuestionLibrary for surface reconstruction in C# Pin
Pritesh Aryan28-Mar-11 20:48
Pritesh Aryan28-Mar-11 20:48 
AnswerRe: Library for surface reconstruction in C# Pin
Pritesh Aryan28-Mar-11 22:43
Pritesh Aryan28-Mar-11 22:43 
GeneralRe: Library for surface reconstruction in C# Pin
Dave Kreskowiak29-Mar-11 1:51
mveDave Kreskowiak29-Mar-11 1:51 
QuestionLarge source code repos Pin
Ozcan ILIKHAN28-Mar-11 19:34
Ozcan ILIKHAN28-Mar-11 19:34 
AnswerRe: Large source code repos Pin
Eddy Vluggen29-Mar-11 0:27
professionalEddy Vluggen29-Mar-11 0:27 
AnswerRe: Large source code repos Pin
PIEBALDconsult29-Mar-11 2:48
mvePIEBALDconsult29-Mar-11 2:48 
GeneralRe: Large source code repos Pin
Ozcan ILIKHAN29-Mar-11 5:02
Ozcan ILIKHAN29-Mar-11 5:02 
GeneralRe: Large source code repos Pin
PIEBALDconsult30-Mar-11 18:35
mvePIEBALDconsult30-Mar-11 18:35 
AnswerRe: Large source code repos Pin
BobJanova30-Mar-11 23:46
BobJanova30-Mar-11 23:46 
Question"Client & Server" Pin
CoderAz28-Mar-11 18:43
CoderAz28-Mar-11 18:43 
AnswerRe: "Client & Server" Pin
fish201229-Mar-11 0:58
fish201229-Mar-11 0:58 
AnswerRe: "Client & Server" Pin
Ganesh Kumar Kaki13-Apr-11 2:29
Ganesh Kumar Kaki13-Apr-11 2:29 
Questiontransfer large data Pin
anishkannan28-Mar-11 17:48
anishkannan28-Mar-11 17: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.