If you want to check that the elements inside the list are equal and in the same order, you can use SequenceEqual:
if (a1.SequenceEqual(a2))
See it working online: ideone
If you want to check that the elements inside the list are equal and in the same order, you can use SequenceEqual:
if (a1.SequenceEqual(a2))
See it working online: ideone