Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 1:14
professionalDaveyM693-Jan-10 1:14 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 1:20
Rob Philpott3-Jan-10 1:20 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:25
mveOriginalGriff3-Jan-10 1:25 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 1:35
Rob Philpott3-Jan-10 1:35 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:48
mveOriginalGriff3-Jan-10 1:48 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 6:35
Rob Philpott3-Jan-10 6:35 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 7:18
mveOriginalGriff3-Jan-10 7:18 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 1:38
professionalDaveyM693-Jan-10 1:38 
Variables change, constants do not and values are contants.
x = 1 + 2
1 and 2 are constant - 1 is always 1 and 2 is always 2, x is variable and so can change if different constants are used to calculate it.

It's value, 3, is constant. If we made it
x = 2 + 3
then x has changed, but 3 hasn't... 3 is still 3! x is now mutated to equal a different constant, 5.

Value types (structs) are meant (apparently) to be treated as values and are therefore constant. Variables using our value type can be made to have a different value but not change the actual value.

Dave

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)

JokeProblem Solved! Pin
DaveyM693-Jan-10 2:05
professionalDaveyM693-Jan-10 2:05 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 0:06
Rob Philpott3-Jan-10 0:06 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 0:18
professionalDaveyM693-Jan-10 0:18 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 0:33
Rob Philpott3-Jan-10 0:33 
GeneralRe: I'm Baffled Again Pin
Richard MacCutchan3-Jan-10 4:49
mveRichard MacCutchan3-Jan-10 4:49 
GeneralRe: I'm Baffled Again Pin
Roger Wright3-Jan-10 5:40
professionalRoger Wright3-Jan-10 5:40 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 2:15
professionalRoger Wright4-Jan-10 2:15 
GeneralRe: I'm Baffled Again Pin
DaveyM694-Jan-10 7:43
professionalDaveyM694-Jan-10 7:43 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 13:04
professionalRoger Wright4-Jan-10 13:04 
QuestionSystem.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
uglyeyes2-Jan-10 13:34
uglyeyes2-Jan-10 13:34 
AnswerRe: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
Abhinav S2-Jan-10 18:11
Abhinav S2-Jan-10 18:11 
GeneralRe: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
uglyeyes3-Jan-10 1:15
uglyeyes3-Jan-10 1:15 
GeneralRe: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
uglyeyes4-Jan-10 1:41
uglyeyes4-Jan-10 1:41 
QuestionBest way to populate this DataGridView Pin
BDJones2-Jan-10 6:50
BDJones2-Jan-10 6:50 
AnswerMessage Closed Pin
2-Jan-10 14:58
stancrm2-Jan-10 14:58 
QuestionRe: Best way to populate this DataGridView [modified] Pin
BDJones3-Jan-10 5:27
BDJones3-Jan-10 5:27 
AnswerRe: Best way to populate this DataGridView Pin
darkelv2-Jan-10 15:52
darkelv2-Jan-10 15:52 

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.