Click here to Skip to main content
15,881,588 members
Home / Discussions / C#
   

C#

 
AnswerRe: RSA public key? Pin
ravingcoder3-Sep-03 17:12
ravingcoder3-Sep-03 17:12 
QuestionHow can we prevent a C++ Class from inheritance? Pin
sri sankaradoss3-Sep-03 1:59
sri sankaradoss3-Sep-03 1:59 
AnswerRe: How can we prevent a C++ Class from inheritance? Pin
Alvaro Mendez3-Sep-03 6:24
Alvaro Mendez3-Sep-03 6:24 
Generalruntime references Pin
wrzeszcz3-Sep-03 1:36
wrzeszcz3-Sep-03 1:36 
QuestionHow to pass an object to an exe Pin
Member 486393-Sep-03 1:08
Member 486393-Sep-03 1:08 
AnswerRe: How to pass an object to an exe Pin
dog_spawn3-Sep-03 1:34
dog_spawn3-Sep-03 1:34 
AnswerRe: How to pass an object to an exe Pin
Daniel Turini3-Sep-03 1:58
Daniel Turini3-Sep-03 1:58 
GeneralGetHashCode() Pin
deanoA3-Sep-03 0:18
deanoA3-Sep-03 0:18 
Hi. I want to implement a program that sends 1 as a numerical value if a checkbox is checked and zero otherwise. So I read MSDN.

I read from MSDN that:

"The Boolean class implements true as the integer, one, and false as the integer, zero. However, a particular programming language might represent true and false with other values. "

I did this in C#:

Checkbox1.checked.GetHashCode();

I get the 1 and 0. But is this safe? I'm worried about the part where it says "However, a particular programming language might represent true and false with other values. " I'm afraid this might cause any side effect. Any ideas what Hashcode is?



"To teach is to learn twice"
GeneralRe: GetHashCode() Pin
dog_spawn3-Sep-03 1:31
dog_spawn3-Sep-03 1:31 
GeneralRe: GetHashCode() Pin
freshthinking3-Sep-03 4:42
freshthinking3-Sep-03 4:42 
GeneralRe: GetHashCode() Pin
James T. Johnson3-Sep-03 6:54
James T. Johnson3-Sep-03 6:54 
GeneralRe: GetHashCode() Pin
dog_spawn3-Sep-03 7:06
dog_spawn3-Sep-03 7:06 
GeneralRe: GetHashCode() Pin
James T. Johnson3-Sep-03 7:09
James T. Johnson3-Sep-03 7:09 
GeneralRe: GetHashCode() Pin
--daljv--3-Sep-03 16:17
suss--daljv--3-Sep-03 16:17 
GeneralRe: GetHashCode() Pin
James T. Johnson3-Sep-03 7:07
James T. Johnson3-Sep-03 7:07 
GeneralRecordSelection in Crystal Reports Pin
Marix2-Sep-03 22:55
Marix2-Sep-03 22:55 
GeneralRe: RecordSelection in Crystal Reports Pin
Braulio Dez3-Sep-03 4:24
Braulio Dez3-Sep-03 4:24 
GeneralRe: Sorry... answers from the newsgroups... Pin
Braulio Dez3-Sep-03 4:26
Braulio Dez3-Sep-03 4:26 
GeneralDisplaying label in ASP.NET Pin
IrishSonic2-Sep-03 22:39
IrishSonic2-Sep-03 22:39 
Generalscroll events detecting Pin
azusakt2-Sep-03 21:39
azusakt2-Sep-03 21:39 
GeneralRe: scroll events detecting Pin
J. Dunlap2-Sep-03 21:46
J. Dunlap2-Sep-03 21:46 
GeneralRe: scroll events detecting Pin
azusakt2-Sep-03 22:04
azusakt2-Sep-03 22:04 
GeneralRe: scroll events detecting Pin
J. Dunlap3-Sep-03 19:43
J. Dunlap3-Sep-03 19:43 
GeneralRe: scroll events detecting Pin
azusakt3-Sep-03 17:12
azusakt3-Sep-03 17:12 
GeneralGAC and Versioning Question Pin
Mazdak2-Sep-03 21:20
Mazdak2-Sep-03 21:20 

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.