>In my windows application(C#) , i have two arraylists.
>I want to compare those two arraylist.
>Is there any way for that?
There's no automatic function that does this for you, as far as I know.
To do this properly yourself, you'll need a three (or is it only two?)
step process:
1. Compare the sizes
2. and 3. Iterate over the lists and compare the objects in them one by one, thereby effectively comparing the order of the lists and the exact content.
Oliver Sturm

Signature
Expert programming and consulting services available
See http://www.sturmnet.org (try /blog as well)
Gomathi - 28 Sep 2005 11:00 GMT
hi,
Thanks for your reply.
I feel that this process is an expensive one.Sothat only i asked for any
other solution.
Once again thanks for that.
Gomathi
>>In my windows application(C#) , i have two arraylists.
>>I want to compare those two arraylist.
[quoted text clipped - 10 lines]
>
> Oliver Sturm
Jon Skeet [C# MVP] - 28 Sep 2005 11:40 GMT
> Thanks for your reply.
> I feel that this process is an expensive one.
Do you have any evidence for that feeling though? It's absolutely
crucial for performance work that you find out just how much something
is costing before you try to improve it. Otherwise, you don't know
whether you've made an improvement or even whether you *need* to
improve it.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too