Click here to Skip to main content
15,919,358 members
Home / Discussions / C#
   

C#

 
AnswerRe: The best method for designing a low profile client application Pin
N a v a n e e t h5-Dec-09 21:45
N a v a n e e t h5-Dec-09 21:45 
GeneralRe: The best method for designing a low profile client application Pin
SummerBulb5-Dec-09 22:02
SummerBulb5-Dec-09 22:02 
GeneralRe: The best method for designing a low profile client application Pin
N a v a n e e t h5-Dec-09 22:25
N a v a n e e t h5-Dec-09 22:25 
QuestionRe: The best method for designing a low profile client application [modified] Pin
SummerBulb5-Dec-09 22:38
SummerBulb5-Dec-09 22:38 
AnswerRe: The best method for designing a low profile client application Pin
N a v a n e e t h6-Dec-09 1:54
N a v a n e e t h6-Dec-09 1:54 
AnswerRe: The best method for designing a low profile client application Pin
Daniel Grunwald6-Dec-09 6:42
Daniel Grunwald6-Dec-09 6:42 
AnswerRe: The best method for designing a low profile client application Pin
PIEBALDconsult6-Dec-09 17:08
mvePIEBALDconsult6-Dec-09 17:08 
QuestionNewbie DatagridView Question Pin
kruegersck5-Dec-09 20:56
kruegersck5-Dec-09 20:56 
AnswerRe: Newbie DatagridView Question Pin
OriginalGriff5-Dec-09 21:46
mveOriginalGriff5-Dec-09 21:46 
QuestionConvert string to property name? Pin
BDJones5-Dec-09 18:39
BDJones5-Dec-09 18:39 
AnswerRe: Convert string to property name? Pin
N a v a n e e t h5-Dec-09 18:58
N a v a n e e t h5-Dec-09 18:58 
QuestionRe: Convert string to property name? Pin
BDJones5-Dec-09 19:34
BDJones5-Dec-09 19:34 
AnswerRe: Convert string to property name? Pin
N a v a n e e t h5-Dec-09 19:39
N a v a n e e t h5-Dec-09 19:39 
GeneralRe: Convert string to property name? Pin
BDJones6-Dec-09 5:12
BDJones6-Dec-09 5:12 
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 

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.