Wednesday, August 25, 2010

Compare Array has equalent element

string[] arr1=new string[3]{"a","b","c"}
string[] arr2=new string[3]{"a","b","c"}

arr1==arr2 //false
arr1.Equals(arr2) //false
arr1.SequenceEqual(arr2) //true

No comments: