There are two lists of string
List A; List B;
What is the shortest code you would suggest to check that A.Count ==
How about a simple loop?
private bool IsEqualLists(List A, List B) { for(int i = 0; i < A.Count; i++) { if(i < B.Count - 1) { return false; } else { if(!String.Equals(A[i], B[i]) { return false; } } } return true; }