Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unreachable code detected? Pin
Jasmine250127-Mar-08 7:43
Jasmine250127-Mar-08 7:43 
GeneralEvents in C# Pin
Vimalsoft(Pty) Ltd27-Mar-08 3:29
professionalVimalsoft(Pty) Ltd27-Mar-08 3:29 
GeneralRe: Events in C# Pin
Rob Philpott27-Mar-08 3:34
Rob Philpott27-Mar-08 3:34 
GeneralRe: Events in C# Pin
Vimalsoft(Pty) Ltd27-Mar-08 3:41
professionalVimalsoft(Pty) Ltd27-Mar-08 3:41 
GeneralRe: Events in C# Pin
Not Active27-Mar-08 3:52
mentorNot Active27-Mar-08 3:52 
GeneralRe: Events in C# Pin
Vimalsoft(Pty) Ltd27-Mar-08 3:55
professionalVimalsoft(Pty) Ltd27-Mar-08 3:55 
GeneralFinding the envelop area of scattered points plot in a coordinate system Pin
Faysal27-Mar-08 3:15
Faysal27-Mar-08 3:15 
GeneralRe: Finding the envelop area of scattered points plot in a coordinate system Pin
Rob Philpott27-Mar-08 3:47
Rob Philpott27-Mar-08 3:47 
GeneralRe: Finding the envelop area of scattered points plot in a coordinate system Pin
Jasmine250127-Mar-08 5:41
Jasmine250127-Mar-08 5:41 
QuestionRe: Finding the envelop area of scattered points plot in a coordinate system Pin
CPallini27-Mar-08 7:05
mveCPallini27-Mar-08 7:05 
GeneralRe: Finding the envelop area of scattered points plot in a coordinate system Pin
Jasmine250127-Mar-08 7:38
Jasmine250127-Mar-08 7:38 
GeneralRe: Finding the envelop area of scattered points plot in a coordinate system Pin
cp987627-Mar-08 18:29
cp987627-Mar-08 18:29 
QuestionData Source Connection Wizard Error "The file is in use" Pin
Leverne McLeod27-Mar-08 3:00
Leverne McLeod27-Mar-08 3:00 
GeneralProgramming On LAN Pin
mehrdadc4827-Mar-08 2:50
mehrdadc4827-Mar-08 2:50 
GeneralRe: Programming On LAN Pin
Rob Philpott27-Mar-08 3:02
Rob Philpott27-Mar-08 3:02 
GeneralRe: Programming On LAN Pin
Ed.Poore27-Mar-08 3:02
Ed.Poore27-Mar-08 3:02 
GeneralFileSystemWatcher and WinService Pin
RickyRicon27-Mar-08 2:30
RickyRicon27-Mar-08 2:30 
QuestionHelp regarding crystal reports Pin
mrcsn27-Mar-08 2:09
mrcsn27-Mar-08 2:09 
GeneralRe: Help regarding crystal reports Pin
rapidtech27-Mar-08 2:26
rapidtech27-Mar-08 2:26 
GeneralRe: Help regarding crystal reports Pin
mrcsn27-Mar-08 18:55
mrcsn27-Mar-08 18:55 
GeneralRe: Help regarding crystal reports Pin
Anoop Unnikrishnan27-Mar-08 2:28
Anoop Unnikrishnan27-Mar-08 2:28 
GeneralList compare algorithm Pin
Stevo Z27-Mar-08 2:03
Stevo Z27-Mar-08 2:03 
GeneralRe: List compare algorithm Pin
Pete O'Hanlon27-Mar-08 2:23
mvePete O'Hanlon27-Mar-08 2:23 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 3:02
Stevo Z27-Mar-08 3:02 
GeneralRe: List compare algorithm Pin
carbon_golem27-Mar-08 3:43
carbon_golem27-Mar-08 3:43 
Do you have to use your own Point class? I think System.Windows.Point has the == operator overloaded already so matching code would be a little simpler, if you're already using it, then disregard. I ran into this problem before, and I started with the smaller of the 2 lists to use as a starting point as you're not going to have any match lists longer than the shortest list. But you're still stuck with a runtime of O(n2). ( I think that's right, but it's been a while for O notation). You could also put your two point lists into Generic Lists and if you're using .NET3.5 there is a Union<> generic extension method that can be used, but I'm unsure if that'll buy you any performance. I looked at the IL generated by the MatchPoints function, and it's 37 Bytes. If you drop the ref and do p1 == p2 the codesize drops to 13 bytes in IL.

"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand

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.