Compares two lists for equality, checking if they contain the same elements in the same order.
This method replaces the LINQ dependency.
OthersTThe type of elements in the lists.
Parameterslist1The first list to compare.
list2The second list to compare.
ReturnsTrue if the lists are equal, false otherwise.