Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: prevent Cut 'n' Paste Pin
leppie30-Jan-06 21:55
leppie30-Jan-06 21:55 
QuestionJavascript variable from WebBrowser control Pin
arro200130-Jan-06 10:29
arro200130-Jan-06 10:29 
AnswerRe: Javascript variable from WebBrowser control Pin
tarasn30-Jan-06 22:35
tarasn30-Jan-06 22:35 
QuestionHashcodes Pin
Beringer30-Jan-06 10:01
Beringer30-Jan-06 10:01 
AnswerRe: Hashcodes Pin
Guffa30-Jan-06 10:17
Guffa30-Jan-06 10:17 
AnswerRe: Hashcodes Pin
Dan Neely30-Jan-06 10:19
Dan Neely30-Jan-06 10:19 
AnswerRe: Hashcodes Pin
Ingo30-Jan-06 22:59
Ingo30-Jan-06 22:59 
AnswerRe: Hashcodes Pin
Le centriste31-Jan-06 1:52
Le centriste31-Jan-06 1:52 
Be aware that if comparison of instances return true, like in:

obj1.Equal(obj2) == true



then they must return the same hashcode.

obj1.Hahscode() == obj2.hashcode()



So, if you implement your own hashcode that is unique for every instance, make sure to override the Equal method to always return false.

If you don't do that, your class won't be usable in Arrays and Hashtables.

--------

"I say no to drugs, but they don't listen."
- Marilyn Manson
AnswerRe: Hashcodes Pin
Beringer31-Jan-06 12:23
Beringer31-Jan-06 12:23 
QuestionQuestion on running Excel when multiple versions of Excel are installed Pin
Flack30-Jan-06 9:13
Flack30-Jan-06 9:13 
QuestionI need a csc switch Pin
likefood30-Jan-06 9:12
likefood30-Jan-06 9:12 
AnswerRe: I need a csc switch Pin
Guffa30-Jan-06 9:18
Guffa30-Jan-06 9:18 
GeneralRe: I need a csc switch Pin
likefood30-Jan-06 9:26
likefood30-Jan-06 9:26 
GeneralRe: I need a csc switch Pin
likefood30-Jan-06 9:30
likefood30-Jan-06 9:30 
QuestionControlling the listView's scrollbar with another control. Pin
galinace30-Jan-06 8:17
galinace30-Jan-06 8:17 
QuestionHow to close opened TCP connection? Pin
Petrus_Alex30-Jan-06 7:13
Petrus_Alex30-Jan-06 7:13 
AnswerRe: How to close opened TCP connection? Pin
Judah Gabriel Himango30-Jan-06 7:19
sponsorJudah Gabriel Himango30-Jan-06 7:19 
GeneralRe: How to close opened TCP connection? Pin
leppie30-Jan-06 8:20
leppie30-Jan-06 8:20 
QuestionShortcut keys Pin
Sled Dog30-Jan-06 6:37
Sled Dog30-Jan-06 6:37 
QuestionMenubar like Skype ... ? Pin
Skoder30-Jan-06 6:29
Skoder30-Jan-06 6:29 
AnswerRe: Menubar like IE, Outlook, Skype more... ? Pin
Skoder31-Jan-06 4:07
Skoder31-Jan-06 4:07 
QuestionHOW TO USE TIMESTAMP Pin
ventomito30-Jan-06 6:15
ventomito30-Jan-06 6:15 
QuestionData Adapter ?? Pin
VPMahank30-Jan-06 5:29
VPMahank30-Jan-06 5:29 
QuestionMessage Box in C# Pin
idreesbadshah30-Jan-06 4:27
idreesbadshah30-Jan-06 4:27 
AnswerRe: Message Box in C# Pin
Alvaro Mendez30-Jan-06 5:46
Alvaro Mendez30-Jan-06 5:46 

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.