Possible Duplicate:
Comparing two List<string> for equality
How can I find out whether two arrays of string are equal to each other?
I used this, but it does not work, even though the contents of both are the same.
string[] array1 = new string[]{"A" , "B"}
string[] array2 = new string[]{"A" , "B"}
if(array1 == array2) // it return false !!!!
{
//
}