Click here to Skip to main content
15,914,419 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Release/Build Engineers ? Pin
rajg829-Jul-08 23:18
rajg829-Jul-08 23:18 
GeneralRe: Release/Build Engineers ? Pin
led mike10-Jul-08 4:46
led mike10-Jul-08 4:46 
GeneralRe: Release/Build Engineers ? Pin
rajg821-Aug-08 0:33
rajg821-Aug-08 0:33 
QuestionGenerating the .NET bytecode directly Pin
Keith Vitali8-Jul-08 8:11
Keith Vitali8-Jul-08 8:11 
AnswerRe: Generating the .NET bytecode directly Pin
led mike8-Jul-08 8:50
led mike8-Jul-08 8:50 
GeneralRe: Generating the .NET bytecode directly Pin
Keith Vitali9-Jul-08 5:40
Keith Vitali9-Jul-08 5:40 
AnswerRe: Generating the .NET bytecode directly Pin
Daniel Grunwald9-Jul-08 10:15
Daniel Grunwald9-Jul-08 10:15 
QuestionRules of Thumb: Object.Equals() vs == Pin
Tristan Rhodes8-Jul-08 1:39
Tristan Rhodes8-Jul-08 1:39 
Hi Guys,

While i understand the differenced between the operator and the Equals method, is there a rule of thumb for when to use them in code?

I've always tended to use == for value comparisons of known types (strings, ints, etc), and Object.Equals() when comparing unknown objects.

I have a colleague who insists on using Object.Equals() for every comparison, and while i don't like it, i can't think of a reasonable reason not to use it.

What are other peoples thoughts on this?

Cheers

Tristan

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

AnswerRe: Rules of Thumb: Object.Equals() vs == Pin
leppie8-Jul-08 1:46
leppie8-Jul-08 1:46 
GeneralRe: Rules of Thumb: Object.Equals() vs == Pin
Tristan Rhodes8-Jul-08 2:33
Tristan Rhodes8-Jul-08 2:33 
AnswerRe: Rules of Thumb: Object.Equals() vs == Pin
Daniel Grunwald9-Jul-08 10:22
Daniel Grunwald9-Jul-08 10:22 
AnswerRe: Rules of Thumb: Object.Equals() vs == Pin
Sandeep Akhare4-Aug-08 1:35
Sandeep Akhare4-Aug-08 1:35 
QuestionIE7 and .NET Pin
Adnan Siddiqi6-Jul-08 17:47
Adnan Siddiqi6-Jul-08 17:47 
AnswerRe: IE7 and .NET Pin
Christian Graus6-Jul-08 18:53
protectorChristian Graus6-Jul-08 18:53 
GeneralRe: IE7 and .NET Pin
Adnan Siddiqi6-Jul-08 19:36
Adnan Siddiqi6-Jul-08 19:36 
GeneralRe: IE7 and .NET Pin
Pete O'Hanlon7-Jul-08 1:11
mvePete O'Hanlon7-Jul-08 1:11 
GeneralRe: IE7 and .NET Pin
Sathesh Sakthivel10-Jul-08 21:16
Sathesh Sakthivel10-Jul-08 21:16 
JokeRe: IE7 and .NET Pin
Thomas Stockwell10-Jul-08 10:41
professionalThomas Stockwell10-Jul-08 10:41 
Questionfilesystemwatcher Pin
Ebube4-Jul-08 9:13
Ebube4-Jul-08 9:13 
AnswerRe: filesystemwatcher Pin
Pete O'Hanlon4-Jul-08 9:45
mvePete O'Hanlon4-Jul-08 9:45 
QuestionSOLVED:Windows Service windows 2000 Framework 2.0 hangs on startup Pin
redWingBB3-Jul-08 11:34
redWingBB3-Jul-08 11:34 
AnswerRe: SOLVED:Windows Service windows 2000 Framework 2.0 hangs on startup Pin
Mark Salsbery3-Jul-08 11:55
Mark Salsbery3-Jul-08 11:55 
AnswerRe: SOLVED:Windows Service windows 2000 Framework 2.0 hangs on startup Pin
PIEBALDconsult3-Jul-08 12:42
mvePIEBALDconsult3-Jul-08 12:42 
QuestionGraph erased in vc++.net!!! Pin
Member 47446832-Jul-08 20:24
Member 47446832-Jul-08 20:24 
AnswerRe: Graph erased in vc++.net!!! Pin
led mike3-Jul-08 7:08
led mike3-Jul-08 7:08 

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.