Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: remove duplicates from list collection Pin
Hum Dum15-Feb-11 0:56
Hum Dum15-Feb-11 0:56 
GeneralRe: remove duplicates from list collection Pin
arkiboys15-Feb-11 0:59
arkiboys15-Feb-11 0:59 
GeneralRe: remove duplicates from list collection Pin
Thomas Krojer15-Feb-11 1:04
Thomas Krojer15-Feb-11 1:04 
GeneralRe: remove duplicates from list collection Pin
arkiboys15-Feb-11 1:40
arkiboys15-Feb-11 1:40 
GeneralRe: remove duplicates from list collection Pin
musefan15-Feb-11 1:46
musefan15-Feb-11 1:46 
GeneralRe: remove duplicates from list collection Pin
RobCroll15-Feb-11 5:04
RobCroll15-Feb-11 5:04 
AnswerRe: remove duplicates from list collection [modified] Pin
wesch15-Feb-11 4:08
wesch15-Feb-11 4:08 
AnswerRe: remove duplicates from list collection Pin
Pete O'Hanlon15-Feb-11 5:27
mvePete O'Hanlon15-Feb-11 5:27 
Others have pointed possible solutions out to you, but I would suggest that you need to step back and think about what equality actually is. It's not such a simple subject, and it's not something you should rush into. In the case of a string, equality could simply be that the text is the same (taking culture into account). In more complex cases, you need to consider whether equality is based on all values of a class being the same, or only some values.

Building a generic equality tester is a big deal. The closest you might get, for instance, could be to have a method that iterates over the items and uses Compare to compare them. This, then depends on the original items being in an IComparable class. I leave it to you to figure out whether or not it's worth the effort to build something generic, or to allow a degree of specialisation to occur in there.

I'm not a stalker, I just know things. Oh by the way, you're out of milk.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


QuestionHow can you track the mouse pointer if you leave the form...... Pin
glennPattonWork314-Feb-11 23:25
professionalglennPattonWork314-Feb-11 23:25 
AnswerRe: How can you track the mouse pointer if you leave the form...... Pin
reza assar14-Feb-11 23:53
reza assar14-Feb-11 23:53 
GeneralRe: How can you track the mouse pointer if you leave the form...... Pin
glennPattonWork315-Feb-11 1:29
professionalglennPattonWork315-Feb-11 1:29 
AnswerRe: How can you track the mouse pointer if you leave the form...... Pin
Pravin Patil, Mumbai15-Feb-11 0:27
Pravin Patil, Mumbai15-Feb-11 0:27 
GeneralRe: How can you track the mouse pointer if you leave the form...... Pin
glennPattonWork315-Feb-11 1:30
professionalglennPattonWork315-Feb-11 1:30 
AnswerRe: How can you track the mouse pointer if you leave the form...... Pin
Luc Pattyn15-Feb-11 2:20
sitebuilderLuc Pattyn15-Feb-11 2:20 
QuestionHow to access port80 Pin
Krishna Varadharajan14-Feb-11 19:53
Krishna Varadharajan14-Feb-11 19:53 
AnswerRe: How to access port80 Pin
Bernhard Hiller14-Feb-11 22:07
Bernhard Hiller14-Feb-11 22:07 
AnswerRe: How to access port80 Pin
Luc Pattyn15-Feb-11 2:21
sitebuilderLuc Pattyn15-Feb-11 2:21 
GeneralRe: How to access port80 Pin
Bernhard Hiller16-Feb-11 21:42
Bernhard Hiller16-Feb-11 21:42 
QuestionGmail Port 465 Send Mail Error Pin
Anubhava Dimri14-Feb-11 19:49
Anubhava Dimri14-Feb-11 19:49 
AnswerRe: Gmail Port 465 Send Mail Error Pin
Dave Kreskowiak15-Feb-11 1:56
mveDave Kreskowiak15-Feb-11 1:56 
GeneralRe: Gmail Port 465 Send Mail Error Pin
Anubhava Dimri16-Feb-11 1:09
Anubhava Dimri16-Feb-11 1:09 
GeneralRe: Gmail Port 465 Send Mail Error Pin
Dave Kreskowiak16-Feb-11 1:12
mveDave Kreskowiak16-Feb-11 1:12 
GeneralRe: Gmail Port 465 Send Mail Error Pin
Anubhava Dimri16-Feb-11 1:17
Anubhava Dimri16-Feb-11 1:17 
GeneralRe: Gmail Port 465 Send Mail Error Pin
Dave Kreskowiak16-Feb-11 2:26
mveDave Kreskowiak16-Feb-11 2:26 
QuestionDataGridViewTextBoxEditingControl autocomplete conflict with wrapmode [modified] Pin
reza assar14-Feb-11 19:37
reza assar14-Feb-11 19:37 

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.