public static bool AreListsEqual(IList<object> left, IList<object> right)
{
if (left == right)
return true;
if ((left != null) && (right != null) && (left.Count == right.Count))
{
for (int i = 0; i < left.Count; i++)
{
var lVal = left[i] as string;
var rVal = right[i] as string;
if (lVal != rVal)
{
return false;
}
}
return true;
}
return false;
}