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

C#

 
Questionupdating data Pin
sneha016-Jun-07 2:19
sneha016-Jun-07 2:19 
AnswerRe: updating data Pin
I Believe In GOD6-Jun-07 2:48
I Believe In GOD6-Jun-07 2:48 
AnswerRe: updating data Pin
ganti.r7-Jun-07 0:21
ganti.r7-Jun-07 0:21 
QuestionStart process Pin
gapfulgence6-Jun-07 2:18
gapfulgence6-Jun-07 2:18 
AnswerRe: Start process Pin
I Believe In GOD6-Jun-07 2:40
I Believe In GOD6-Jun-07 2:40 
AnswerRe: Start process Pin
gapfulgence6-Jun-07 2:49
gapfulgence6-Jun-07 2:49 
QuestionRe: Start process Pin
gapfulgence6-Jun-07 3:04
gapfulgence6-Jun-07 3:04 
AnswerRe: Start process Pin
I Believe In GOD6-Jun-07 3:11
I Believe In GOD6-Jun-07 3:11 
QuestionRe: Start process Pin
gapfulgence6-Jun-07 3:26
gapfulgence6-Jun-07 3:26 
GeneralRe: Start process Pin
gapfulgence6-Jun-07 3:46
gapfulgence6-Jun-07 3:46 
AnswerRe: Start process Pin
Dave Kreskowiak6-Jun-07 4:19
mveDave Kreskowiak6-Jun-07 4:19 
GeneralRe: Start process Pin
I Believe In GOD6-Jun-07 4:33
I Believe In GOD6-Jun-07 4:33 
GeneralRe: Start process Pin
gapfulgence6-Jun-07 5:13
gapfulgence6-Jun-07 5:13 
QuestionDataGridView prevent edit Pin
~~~Johnny~~~6-Jun-07 2:17
~~~Johnny~~~6-Jun-07 2:17 
AnswerRe: DataGridView prevent edit Pin
I Believe In GOD6-Jun-07 2:53
I Believe In GOD6-Jun-07 2:53 
AnswerRe: DataGridView prevent edit Pin
~~~Johnny~~~6-Jun-07 9:18
~~~Johnny~~~6-Jun-07 9:18 
AnswerRe: DataGridView prevent edit Pin
ganti.r7-Jun-07 0:24
ganti.r7-Jun-07 0:24 
QuestionDomain Pin
Michael O.6-Jun-07 2:09
Michael O.6-Jun-07 2:09 
NewsRe: Domain Pin
I Believe In GOD6-Jun-07 2:24
I Believe In GOD6-Jun-07 2:24 
QuestionCreating blinking I-Beam Pin
Vertyg06-Jun-07 2:02
Vertyg06-Jun-07 2:02 
AnswerRe: Creating blinking I-Beam Pin
I Believe In GOD6-Jun-07 2:16
I Believe In GOD6-Jun-07 2:16 
GeneralRe: Creating blinking I-Beam Pin
Vertyg06-Jun-07 2:20
Vertyg06-Jun-07 2:20 
GeneralRe: Creating blinking I-Beam Pin
leppie6-Jun-07 3:30
leppie6-Jun-07 3:30 
QuestionAre theses the same: object.Equal(obj,null) and obj == null? Pin
Christopher Stratmann6-Jun-07 1:31
Christopher Stratmann6-Jun-07 1:31 
Is one better than the other? I have done some research and found that if I have a ClassA that overloads the '==' operator then using ClassA == null will actually go into that overload operator function, but object.Equal(ClassA,null) does not go into the overloaded '==' operator function. Furthermore, what is really weird is if I say ClassA myClassA; in my code and do not set it. myClassA equals null and then coding if (myClassA == null);. My overloaded '==' operator function will get called and I HAVE to use object.Equal(myClassA,null). I cannot use if (this == null && myClassA == null) return true; within my overloaded '==' operator function because it would go into an infinite loop.

Another thing which I think is weird is using object.Equal() instead of ==, I will sometimes get a Code Analysis warning CA1062 (Ex: Microsoft.Design : Validate parameter 'value' passed to externally visible method GettingControlEventArgs.set_Control(Control):Void. So in my code if I do not want the overloaded == operator to get called if myClassA is null then I first must ust object.Equal() and then use == to test if myClassA is null to get rid of the Code Analysis warning.

Chris
AnswerRe: Are theses the same: object.Equal(obj,null) and obj == null? Pin
Guffa6-Jun-07 1:54
Guffa6-Jun-07 1:54 

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.