Page 1 of 1

Comparison of two arrays

Posted: Tue Jun 14, 2016 3:33 pm
by sukhmeet032795
Hi,

i have list of arrays. I want to compare the arrays and check if any two of the arrays are equal. I am using C# syntax. So i thought of using SequenceEqual but that is not working and i dont want to compute term by term.

My arrays are of the form -> var recordedArray = dataTable.Rows.ItemArray;

How can i accomplish this?

Thanks a Ton!!!!

Re: Comparison of two arrays

Posted: Thu Jun 16, 2016 8:33 am
by odklizec
Hi,

What you are asking for is C# related and it can be solved by a simple google search ;) Here are first three results returned by google:
http://stackoverflow.com/a/713355
http://stackoverflow.com/a/3232755
http://www.dotnetperls.com/sequenceequal
Hope these help?

Re: Comparison of two arrays

Posted: Fri Jun 17, 2016 5:11 am
by sukhmeet032795
Hi,

Thanks for the quick reply. I have already solved it. I was missing reference to System.Core dll which contains the namespace and the function SequenceEqual. So after adding the dll, i wws able to solve it.