Click here to Skip to main content
15,916,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to separate date and time from a string Pin
RobCroll29-Mar-11 14:45
RobCroll29-Mar-11 14:45 
AnswerRe: how to separate date and time from a string Pin
PIEBALDconsult29-Mar-11 15:05
mvePIEBALDconsult29-Mar-11 15:05 
AnswerRe: how to separate date and time from a string Pin
ascap5-Apr-11 20:14
ascap5-Apr-11 20:14 
AnswerRe: how to separate date and time from a string Pin
Ganesh Kumar Kaki13-Apr-11 2:20
Ganesh Kumar Kaki13-Apr-11 2:20 
QuestionSystem.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1); functionality Pin
Pierre besquent29-Mar-11 1:19
Pierre besquent29-Mar-11 1:19 
AnswerRe: System.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1); functionality Pin
Pete O'Hanlon29-Mar-11 1:24
mvePete O'Hanlon29-Mar-11 1:24 
GeneralRe: System.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1); functionality Pin
Pierre besquent29-Mar-11 1:29
Pierre besquent29-Mar-11 1:29 
GeneralRe: System.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1); functionality PinPopular
Pete O'Hanlon29-Mar-11 2:16
mvePete O'Hanlon29-Mar-11 2:16 
GeneralRe: System.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1); functionality Pin
DaveyM6929-Mar-11 7:40
professionalDaveyM6929-Mar-11 7:40 
AnswerRe: System.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1); functionality Pin
Rob Philpott29-Mar-11 1:38
Rob Philpott29-Mar-11 1:38 
AnswerRe: System.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1); functionality Pin
Luc Pattyn29-Mar-11 1:52
sitebuilderLuc Pattyn29-Mar-11 1:52 
AnswerCross post Pin
Not Active29-Mar-11 2:27
mentorNot Active29-Mar-11 2:27 
GeneralRe: Cross post Pin
Luc Pattyn29-Mar-11 3:32
sitebuilderLuc Pattyn29-Mar-11 3:32 
GeneralRe: Cross post Pin
Not Active29-Mar-11 3:42
mentorNot Active29-Mar-11 3:42 
GeneralRe: Cross post Pin
Luc Pattyn29-Mar-11 4:20
sitebuilderLuc Pattyn29-Mar-11 4:20 
QuestionEvent-Based programming Pin
reversing28-Mar-11 22:06
reversing28-Mar-11 22:06 
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 

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.