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

C#

 
AnswerRe: Convert string to property name? Pin
PIEBALDconsult5-Dec-09 21:20
mvePIEBALDconsult5-Dec-09 21:20 
GeneralRe: Convert string to property name? Pin
BDJones6-Dec-09 5:15
BDJones6-Dec-09 5:15 
QuestionSimple Example of using Enum Type why we use them? Pin
Rameez Raja5-Dec-09 18:24
Rameez Raja5-Dec-09 18:24 
AnswerRe: Simple Example of using Enum Type why we use them? Pin
PIEBALDconsult5-Dec-09 18:32
mvePIEBALDconsult5-Dec-09 18:32 
Questioninserting words into tablelayout Pin
someone295-Dec-09 15:53
someone295-Dec-09 15:53 
AnswerRe: inserting words into tablelayout Pin
Luc Pattyn5-Dec-09 16:21
sitebuilderLuc Pattyn5-Dec-09 16:21 
QuestionWhy does ReSharper implement Equals like this? Pin
CaptainSeeSharp5-Dec-09 15:16
CaptainSeeSharp5-Dec-09 15:16 
AnswerRe: Why does ReSharper implement Equals like this? Pin
N a v a n e e t h5-Dec-09 16:52
N a v a n e e t h5-Dec-09 16:52 
When you override Equals(), you are saying that "your class objects has value equality rather than reference equality". The suspected code here is doing just a null check before doing the value equality. Calling members on a null reference will lead to exception. It can't just use if(obj == null) because if operator == is overloaded on the type and it calls Equals to do the equality, you will end up in infinite loop. Usually it is a recommended practice to overload operator == if you have overridden Equals and call Equals from operator overload.

Having said that, resharper is stupid in generating Equals and GetHashCode. You should never rely on the code what it generated. Resharper includes mutable objects in the hashcode calculation which will lead into severe issues.

Smile | :)

Best wishes,
Navaneeth

QuestionAdd a dynamic number of labels to form or panel Pin
bolikej5-Dec-09 12:54
bolikej5-Dec-09 12:54 
AnswerRe: Add a dynamic number of labels to form or panel Pin
Luc Pattyn5-Dec-09 13:00
sitebuilderLuc Pattyn5-Dec-09 13:00 
QuestionStopping remote services with WMI 'RPC not available' Pin
Jacob Dixon5-Dec-09 9:05
Jacob Dixon5-Dec-09 9:05 
AnswerRe: Stopping remote services with WMI 'RPC not available' Pin
Jacob Dixon5-Dec-09 9:15
Jacob Dixon5-Dec-09 9:15 
Questionmove the object Pin
machisiou5-Dec-09 5:48
machisiou5-Dec-09 5:48 
AnswerRe: move the object Pin
Luc Pattyn5-Dec-09 6:01
sitebuilderLuc Pattyn5-Dec-09 6:01 
QuestionClass Diagram Code Generation Pin
Randal Vance Cunanan5-Dec-09 5:39
Randal Vance Cunanan5-Dec-09 5:39 
AnswerRe: Class Diagram Code Generation Pin
Tony Richards5-Dec-09 5:59
Tony Richards5-Dec-09 5:59 
GeneralRe: Class Diagram Code Generation Pin
Randal Vance Cunanan5-Dec-09 6:03
Randal Vance Cunanan5-Dec-09 6:03 
GeneralRe: Class Diagram Code Generation Pin
0x3c05-Dec-09 6:38
0x3c05-Dec-09 6:38 
GeneralRe: Class Diagram Code Generation Pin
Randal Vance Cunanan5-Dec-09 11:58
Randal Vance Cunanan5-Dec-09 11:58 
GeneralRe: Class Diagram Code Generation Pin
Rozis5-Dec-09 13:18
Rozis5-Dec-09 13:18 
GeneralRe: Class Diagram Code Generation Pin
Randal Vance Cunanan5-Dec-09 16:21
Randal Vance Cunanan5-Dec-09 16:21 
GeneralRe: Class Diagram Code Generation Pin
0x3c05-Dec-09 19:55
0x3c05-Dec-09 19:55 
GeneralRe: Class Diagram Code Generation Pin
Randal Vance Cunanan5-Dec-09 19:57
Randal Vance Cunanan5-Dec-09 19:57 
GeneralRe: Class Diagram Code Generation Pin
harold aptroot5-Dec-09 6:56
harold aptroot5-Dec-09 6:56 
QuestionCustom text with Special Field inside Crystal Reports. Pin
Saksida Bojan5-Dec-09 4:53
Saksida Bojan5-Dec-09 4:53 

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.