Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
QuestionScreen Shield Pin
Enobong Adahada13-Apr-11 0:59
Enobong Adahada13-Apr-11 0:59 
AnswerRe: Screen Shield Pin
Richard MacCutchan13-Apr-11 2:50
mveRichard MacCutchan13-Apr-11 2:50 
AnswerRe: Screen Shield Pin
Dave Kreskowiak13-Apr-11 6:07
mveDave Kreskowiak13-Apr-11 6:07 
AnswerRe: Screen Shield Pin
Eddy Vluggen13-Apr-11 10:43
professionalEddy Vluggen13-Apr-11 10:43 
AnswerRe: Screen Shield Pin
wizardzz13-Apr-11 11:25
wizardzz13-Apr-11 11:25 
Questionwebsite publishing problem Pin
S.Aijaz13-Apr-11 0:05
S.Aijaz13-Apr-11 0:05 
AnswerMy Vote of 1 [modified] Pin
Keith Barrow13-Apr-11 2:13
professionalKeith Barrow13-Apr-11 2:13 
QuestionOperator overloading, when to Pin
Niklas L12-Apr-11 22:23
Niklas L12-Apr-11 22:23 
I have written a few classes to handle geometry primitives, like Length, Angle, etc, to make sure there are no unit mismatches as could happen if the values are stored in plain double types.

Coming from C++, I overloaded operator== et al, to compare the actual values, which to me would be intuitive. However, co-workers coming from Java claimed operator== should be reserved for comparing references, and that I should use Equal() and the like for comparison. The C#-ers here seems to be divided.

Is there a design guide for operator overloading in C#? How would you prefer the implementation? Operator overloading or plain old function calls?

AnswerRe: Operator overloading, when to Pin
_Erik_12-Apr-11 22:37
_Erik_12-Apr-11 22:37 
AnswerRe: Operator overloading, when to Pin
David198712-Apr-11 22:50
David198712-Apr-11 22:50 
AnswerRe: Operator overloading, when to Pin
BobJanova13-Apr-11 1:20
BobJanova13-Apr-11 1:20 
AnswerRe: Operator overloading, when to Pin
PIEBALDconsult13-Apr-11 2:59
mvePIEBALDconsult13-Apr-11 2:59 
GeneralRe: Operator overloading, when to Pin
jschell13-Apr-11 9:04
jschell13-Apr-11 9:04 
GeneralRe: Operator overloading, when to Pin
PIEBALDconsult13-Apr-11 15:29
mvePIEBALDconsult13-Apr-11 15:29 
GeneralRe: Operator overloading, when to Pin
jschell14-Apr-11 9:24
jschell14-Apr-11 9:24 
GeneralRe: Operator overloading, when to Pin
David198713-Apr-11 19:30
David198713-Apr-11 19:30 
GeneralRe: Operator overloading, when to Pin
jschell14-Apr-11 9:20
jschell14-Apr-11 9:20 
GeneralRe: Operator overloading, when to Pin
David198714-Apr-11 9:47
David198714-Apr-11 9:47 
GeneralRe: Operator overloading, when to Pin
jschell15-Apr-11 8:36
jschell15-Apr-11 8:36 
GeneralRe: Operator overloading, when to Pin
David198715-Apr-11 8:39
David198715-Apr-11 8:39 
GeneralRe: Operator overloading, when to Pin
jschell16-Apr-11 10:33
jschell16-Apr-11 10:33 
GeneralRe: Operator overloading, when to Pin
David198716-Apr-11 19:59
David198716-Apr-11 19:59 
GeneralRe: Operator overloading, when to Pin
jschell18-Apr-11 9:10
jschell18-Apr-11 9:10 
GeneralRe: Operator overloading, when to Pin
David198718-Apr-11 19:33
David198718-Apr-11 19:33 
GeneralRe: Operator overloading, when to Pin
jschell19-Apr-11 8:48
jschell19-Apr-11 8:48 

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.