Click here to Skip to main content
15,898,939 members
Home / Discussions / C#
   

C#

 
Questionhow to expose an event in user control Pin
nuttynibbles1-Feb-10 10:37
nuttynibbles1-Feb-10 10:37 
AnswerRe: how to expose an event in user control Pin
#realJSOP1-Feb-10 10:47
professional#realJSOP1-Feb-10 10:47 
AnswerRe: how to expose an event in user control Pin
DaveyM691-Feb-10 12:10
professionalDaveyM691-Feb-10 12:10 
GeneralRe: how to expose an event in user control Pin
nuttynibbles1-Feb-10 16:51
nuttynibbles1-Feb-10 16:51 
QuestionAdding and removing differences from List compared to another list Pin
zagitta1-Feb-10 10:34
zagitta1-Feb-10 10:34 
AnswerRe: Adding and removing differences from List compared to another list Pin
#realJSOP1-Feb-10 10:51
professional#realJSOP1-Feb-10 10:51 
GeneralRe: Adding and removing differences from List compared to another list Pin
zagitta1-Feb-10 11:29
zagitta1-Feb-10 11:29 
GeneralRe: Adding and removing differences from List compared to another list Pin
#realJSOP1-Feb-10 23:20
professional#realJSOP1-Feb-10 23:20 
0) You gave us precious little info to work with here

1) You wanted a method to do it, I gave you one. Since I didn't know what you were working with (there was no real indication that you're working with intrinsic types), I couldn't recommend using a hash set. In fact, you talked about binding in a grid, so I presumed a complex object.

2) I suppose you could use Linq, but I'm not so sure that it would be any faster, and even if it was, I would still be prompted to do the list class override and pass the new list into it if for no other reason than to abstract the functionality out of the code that's using it, and into the code that should do it.

3) In the time we've been discussing it, you could have tried both ideas to see which one works best for you.

4) I wish the List object had a Merge method that allowed us to optionally omit non-unique objects.

.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

GeneralRe: Adding and removing differences from List compared to another list Pin
zagitta2-Feb-10 2:55
zagitta2-Feb-10 2:55 
GeneralRe: Adding and removing differences from List compared to another list Pin
Dan Mos2-Feb-10 7:36
Dan Mos2-Feb-10 7:36 
GeneralRe: Adding and removing differences from List compared to another list [modified] Pin
zagitta3-Feb-10 4:37
zagitta3-Feb-10 4:37 
GeneralRe: Adding and removing differences from List compared to another list Pin
Luc Pattyn1-Feb-10 12:15
sitebuilderLuc Pattyn1-Feb-10 12:15 
GeneralRe: Adding and removing differences from List compared to another list Pin
#realJSOP1-Feb-10 23:22
professional#realJSOP1-Feb-10 23:22 
Questionsql instances and a deuced connection Pin
reza assar1-Feb-10 10:27
reza assar1-Feb-10 10:27 
AnswerRe: sql instances and a deuced connection Pin
Rutvik Dave1-Feb-10 10:39
professionalRutvik Dave1-Feb-10 10:39 
QuestionC1Flexgrid datetime picker background color Pin
Member 13252301-Feb-10 10:26
Member 13252301-Feb-10 10:26 
Questionsetup and deployment Pin
reza assar1-Feb-10 10:15
reza assar1-Feb-10 10:15 
QuestionHow to hide a network connection from the user and run that connection using C# code Pin
CoderForEver1-Feb-10 9:29
CoderForEver1-Feb-10 9:29 
AnswerRe: How to hide a network connection from the user and run that connection using C# code Pin
PIEBALDconsult1-Feb-10 15:07
mvePIEBALDconsult1-Feb-10 15:07 
GeneralRe: How to hide a network connection from the user and run that connection using C# code Pin
CoderForEver1-Feb-10 19:05
CoderForEver1-Feb-10 19:05 
QuestionWhich ones are free databases? Pin
Aseem Sharma1-Feb-10 5:40
Aseem Sharma1-Feb-10 5:40 
AnswerRe: Which ones are free databases? [modified] Pin
Covean1-Feb-10 5:49
Covean1-Feb-10 5:49 
GeneralRe: Which ones are free databases? Pin
vivasaayi1-Feb-10 6:47
vivasaayi1-Feb-10 6:47 
AnswerRe: Which ones are free databases? Pin
PIEBALDconsult1-Feb-10 8:13
mvePIEBALDconsult1-Feb-10 8:13 
GeneralRe: Which ones are free databases? Pin
Luc Pattyn1-Feb-10 8:15
sitebuilderLuc Pattyn1-Feb-10 8: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.