Click here to Skip to main content
16,006,341 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple DragDrop question Pin
Henry Minute4-Feb-09 8:46
Henry Minute4-Feb-09 8:46 
QuestionWhy not True Pin
ziwez04-Feb-09 4:53
ziwez04-Feb-09 4:53 
AnswerRe: Why not True Pin
SeMartens4-Feb-09 5:00
SeMartens4-Feb-09 5:00 
AnswerRe: Why not True Pin
Luc Pattyn4-Feb-09 5:01
sitebuilderLuc Pattyn4-Feb-09 5:01 
GeneralRe: Why not True Pin
ziwez04-Feb-09 5:23
ziwez04-Feb-09 5:23 
GeneralRe: Why not True Pin
J4amieC4-Feb-09 5:34
J4amieC4-Feb-09 5:34 
GeneralRe: Why not True Pin
ziwez04-Feb-09 6:16
ziwez04-Feb-09 6:16 
AnswerRe: Why not True [modified] Pin
Luc Pattyn4-Feb-09 5:36
sitebuilderLuc Pattyn4-Feb-09 5:36 
Hi,

yes you are absolutely right, it does compile (well, after one adds type declarations for all the variables used), although it does not make sense whatsoever.

CompareTo returns an int
int.Equals(true) returns false no matter what.

It may help to read some documentation[^] especially if you insist on using methods you don't really need and apparently don't understand well.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Friday, June 10, 2011 11:35 AM

AnswerRe: Why not True Pin
PIEBALDconsult4-Feb-09 5:21
mvePIEBALDconsult4-Feb-09 5:21 
AnswerRe: Why not True Pin
musefan4-Feb-09 5:36
musefan4-Feb-09 5:36 
AnswerRe: Why not True [modified] Pin
Alan N4-Feb-09 5:40
Alan N4-Feb-09 5:40 
GeneralRe: Why not True Pin
ziwez04-Feb-09 6:24
ziwez04-Feb-09 6:24 
AnswerRe: Why not True [modified] Pin
Luc Pattyn4-Feb-09 6:43
sitebuilderLuc Pattyn4-Feb-09 6:43 
GeneralRe: Why not True Pin
ziwez04-Feb-09 7:03
ziwez04-Feb-09 7:03 
AnswerRe: Why not True [modified] Pin
Luc Pattyn4-Feb-09 7:16
sitebuilderLuc Pattyn4-Feb-09 7:16 
GeneralRe: Why not True Pin
ziwez04-Feb-09 7:33
ziwez04-Feb-09 7:33 
GeneralRe: Why not True Pin
User 66584-Feb-09 8:46
User 66584-Feb-09 8:46 
GeneralRe: Why not True Pin
ziwez05-Feb-09 2:03
ziwez05-Feb-09 2:03 
Questionadjust my machine's utc? Pin
mirko864-Feb-09 4:40
mirko864-Feb-09 4:40 
AnswerRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 5:22
mvePIEBALDconsult4-Feb-09 5:22 
AnswerRe: adjust my machine's utc? [modified] Pin
Luc Pattyn4-Feb-09 5:40
sitebuilderLuc Pattyn4-Feb-09 5:40 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 7:12
mvePIEBALDconsult4-Feb-09 7:12 
AnswerRe: adjust my machine's utc? Pin
Henry Minute4-Feb-09 5:22
Henry Minute4-Feb-09 5:22 
GeneralRe: adjust my machine's utc? Pin
mirko864-Feb-09 5:31
mirko864-Feb-09 5:31 
GeneralRe: adjust my machine's utc? Pin
Henry Minute4-Feb-09 5:37
Henry Minute4-Feb-09 5:37 

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.