Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
AnswerRe: a query Pin
Christian Graus19-Feb-07 22:54
protectorChristian Graus19-Feb-07 22:54 
GeneralRe: a query Pin
V.19-Feb-07 23:49
professionalV.19-Feb-07 23:49 
GeneralRe: a query Pin
Colin Angus Mackay19-Feb-07 23:50
Colin Angus Mackay19-Feb-07 23:50 
GeneralRe: a query Pin
Christian Graus20-Feb-07 10:59
protectorChristian Graus20-Feb-07 10:59 
AnswerRe: a query Pin
virendra patel19-Feb-07 22:56
virendra patel19-Feb-07 22:56 
GeneralRe: a query Pin
V.19-Feb-07 23:48
professionalV.19-Feb-07 23:48 
GeneralRe: a query Pin
Christian Graus20-Feb-07 11:03
protectorChristian Graus20-Feb-07 11:03 
GeneralRe: a query Pin
V.20-Feb-07 20:04
professionalV.20-Feb-07 20:04 
I tend to disagree.

Suppose I have a variable distance (integer)
A distance can never be smaller then 0.

If I make my variable public, you can set it to what integer you like even < 0.
With a property you could build in a check.

set{<br />
  if(value >= 0){<br />
    distance = value;<br />
  }<br />
  else{<br />
    distance = 0;<br />
  }<br />
}


V.

Stop smoking so you can: Enjoy longer the money you save.
Moviereview Archive

AnswerRe: a query Pin
V.19-Feb-07 23:47
professionalV.19-Feb-07 23:47 
AnswerRe: a query Pin
Colin Angus Mackay19-Feb-07 23:49
Colin Angus Mackay19-Feb-07 23:49 
GeneralRe: a query [modified] Pin
Nekshan21-Feb-07 0:13
Nekshan21-Feb-07 0:13 
AnswerRe: a query Pin
Guffa20-Feb-07 8:07
Guffa20-Feb-07 8:07 
QuestionPrinting in C# Pin
RichardContact-119-Feb-07 22:09
RichardContact-119-Feb-07 22:09 
Questionlist view with combobox Pin
Sunshine Always19-Feb-07 22:07
Sunshine Always19-Feb-07 22:07 
QuestionRichtextbox gets cleared [modified] Pin
Dominic Victor19-Feb-07 21:40
Dominic Victor19-Feb-07 21:40 
Questioncustom control Pin
md_refay19-Feb-07 21:01
md_refay19-Feb-07 21:01 
AnswerRe: custom control Pin
Martin#19-Feb-07 21:45
Martin#19-Feb-07 21:45 
AnswerRe: custom control Pin
Stefan Troschuetz19-Feb-07 22:12
Stefan Troschuetz19-Feb-07 22:12 
Questionfrm.Close() issue Pin
ArchaBhandare19-Feb-07 20:55
ArchaBhandare19-Feb-07 20:55 
AnswerRe: frm.Close() issue Pin
Martin#19-Feb-07 21:12
Martin#19-Feb-07 21:12 
GeneralRe: frm.Close() issue Pin
ArchaBhandare19-Feb-07 21:21
ArchaBhandare19-Feb-07 21:21 
Questiona query [modified] Pin
Nekshan19-Feb-07 20:40
Nekshan19-Feb-07 20:40 
AnswerRe: a query Pin
virendra patel19-Feb-07 21:00
virendra patel19-Feb-07 21:00 
GeneralRe: a query Pin
Nekshan19-Feb-07 21:55
Nekshan19-Feb-07 21:55 
AnswerRe: a query Pin
Guffa19-Feb-07 21:24
Guffa19-Feb-07 21:24 

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.