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

.NET (Core and Framework)

 
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 
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 
Object.Equals() should be used whenever you want to check Identity not equity.
Reference type equals returns true if both objects are pointing to same memory location. It is not going to return you true if both object have identical values(except string type). So Object.Equals() checks for Identity not equality.

But if you are using Equals method on value types it check for Equility not identity

So When you want to check Identity use Equals method
But when you want to check for equility use ==

Be aware while using Equals method with values types as it may have performance issue while boxing the values types sp better to go with ==

Addition to this Object.Equals method provides Comparison type paramter where you can ignore case sensitivity

Please have some thoughts on this question so that i can also get some feedback

Thanks and Regards
Sandeep

If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "

Check My Blog

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 
GeneralRe: Graph erased in vc++.net!!! Pin
Member 47446833-Jul-08 20:18
Member 47446833-Jul-08 20:18 
GeneralRe: Graph erased in vc++.net!!! Pin
Christian Graus6-Jul-08 18:55
protectorChristian Graus6-Jul-08 18:55 
GeneralRe: Graph erased in vc++.net!!! Pin
Member 47446836-Jul-08 23:41
Member 47446836-Jul-08 23:41 
GeneralRe: Graph erased in vc++.net!!! Pin
led mike7-Jul-08 10:45
led mike7-Jul-08 10:45 

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.