I was trying to use Enumerable.SequenceEqual(x,y) as I expected it to work based on
Object.Equals(x,y) method, which returns false if x or y is null, and true if both are null (for null cases).
However Enumerable.SequenceEqual(x,y) throws exception if any parameter is a null reference and will not return true if it is given two nulls.
In my code I check for collection equality quite often so I created a method that mimics Object.Equals behaviour for sequences but I just wonder whats the logic behind such default behaviour, and is there maybe an existing method with no exceptions on nulls?