Comparing 2 arrays, what's the fastest way ?
From: Mike (Mike_at_discussions.microsoft.com)
Date: 11/10/04
- Next message: Richard Blewett [DevelopMentor]: "Re: [IMPORTANT] obfuscators"
- Previous message: Stefan Hong: "Re: Inconsistant null parameter handling in Reflection"
- Next in thread: Jon Skeet [C# MVP]: "Re: Comparing 2 arrays, what's the fastest way ?"
- Reply: Jon Skeet [C# MVP]: "Re: Comparing 2 arrays, what's the fastest way ?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 16:29:09 -0800
Hi! I am trying to determine if the DataRow of one dataset contains the same
data as the DataRow of another. I figured I can extract ItemArray's from each
dataset and then compare them.
1) Is this the fastest way? I will have to loop through thousands of rows
for what I am doing.
2) How can I compare arrays for Value Equality ? I do not think array's
.Equal method does Value Equality check. Based on what I understood, it does
Reference Equality check. Am I right ?
Any input is greatly appreciated,
- Next message: Richard Blewett [DevelopMentor]: "Re: [IMPORTANT] obfuscators"
- Previous message: Stefan Hong: "Re: Inconsistant null parameter handling in Reflection"
- Next in thread: Jon Skeet [C# MVP]: "Re: Comparing 2 arrays, what's the fastest way ?"
- Reply: Jon Skeet [C# MVP]: "Re: Comparing 2 arrays, what's the fastest way ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|