Click here to Skip to main content
15,912,069 members
Home / Discussions / C#
   

C#

 
QuestionI need a solution Pin
Johan138-Feb-06 0:36
Johan138-Feb-06 0:36 
AnswerRe: I need a solution Pin
J4amieC8-Feb-06 0:39
J4amieC8-Feb-06 0:39 
AnswerRe: I need a solution Pin
Drew McGhie8-Feb-06 5:13
Drew McGhie8-Feb-06 5:13 
QuestionHow to retrive the Day of a given date Pin
luckyv8-Feb-06 0:16
luckyv8-Feb-06 0:16 
AnswerRe: How to retrive the Day of a given date Pin
J4amieC8-Feb-06 0:40
J4amieC8-Feb-06 0:40 
GeneralRe: How to retrive the Day of a given date Pin
luckyv8-Feb-06 4:26
luckyv8-Feb-06 4:26 
Questioncan every body know that "TZ Executable Protector" How work ? Pin
hdv2128-Feb-06 0:04
hdv2128-Feb-06 0:04 
AnswerRe: can every body know that "TZ Executable Protector" How work ? Pin
leppie8-Feb-06 0:21
leppie8-Feb-06 0:21 
GeneralRe: can every body know that "TZ Executable Protector" How work ? Pin
hdv2128-Feb-06 1:07
hdv2128-Feb-06 1:07 
Questionerror-defines operator == or operator != but does not override Object.GetHashCode() Pin
sasire188-Feb-06 0:02
sasire188-Feb-06 0:02 
AnswerRe: error-defines operator == or operator != but does not override Object.GetHashCode() Pin
Ingo8-Feb-06 0:28
Ingo8-Feb-06 0:28 
GeneralRe: error-defines operator == or operator != but does not override Object.GetHashCode() Pin
sasire188-Feb-06 0:44
sasire188-Feb-06 0:44 
AnswerRe: error-defines operator == or operator != but does not override Object.GetHashCode() Pin
J4amieC8-Feb-06 0:46
J4amieC8-Feb-06 0:46 
AnswerRe: error-defines operator == or operator != but does not override Object.GetHashCode() Pin
Guffa8-Feb-06 0:58
Guffa8-Feb-06 0:58 
Are you sure that they are errors, not warnings?

The compiler says that you have created a class that will behave erratically. The Equals method should give the same result as the equality operator, so if you override one of them, you should override the other. If you compare the object to something, it will first look for a specific equality operator for the data type, and if none exists, it uses the Equals method. If you have overridden only the equality operator but not the Equals method, the comparison will work differently depending on what you compare it to.

The GetHashCode method is used among other things when you put an object in certain collections. If the GetHashCode methods isn't based on the same data as the equality operator, the object won't work correctly in the collection.

---
b { font-weight: normal; }

AnswerRe: error-defines operator == or operator != but does not override Object.GetHashCode() Pin
jinzhecheng8-Feb-06 9:23
jinzhecheng8-Feb-06 9:23 
QuestionRunning an application in a local intranet Pin
Bjarne Riis7-Feb-06 23:57
Bjarne Riis7-Feb-06 23:57 
Questionhow to set property of controls of one form from onother form[s] ? Pin
hdv2127-Feb-06 23:45
hdv2127-Feb-06 23:45 
AnswerRe: how to set property of controls of one form from onother form[s] ? Pin
Ingo8-Feb-06 0:27
Ingo8-Feb-06 0:27 
GeneralRe: how to set property of controls of one form from onother form[s] ? Pin
hdv2128-Feb-06 1:09
hdv2128-Feb-06 1:09 
GeneralRe: how to set property of controls of one form from onother form[s] ? Pin
Ingo8-Feb-06 2:23
Ingo8-Feb-06 2:23 
Questionwant to oepn a web page through desktop Pin
raheeli7-Feb-06 23:19
raheeli7-Feb-06 23:19 
AnswerRe: want to oepn a web page through desktop Pin
Ingo7-Feb-06 23:24
Ingo7-Feb-06 23:24 
AnswerRe: want to oepn a web page through desktop Pin
Ingo7-Feb-06 23:49
Ingo7-Feb-06 23:49 
Questionhide form using the close button Pin
Mridang Agarwalla7-Feb-06 23:11
Mridang Agarwalla7-Feb-06 23:11 
AnswerRe: hide form using the close button Pin
raheeli7-Feb-06 23:15
raheeli7-Feb-06 23:15 

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.