Say I have a class something like this:
public class MyClass
{
public int[] BunchOfNumbers { get; set; }
public int SomeOtherNumber { get; set; }
}
I'd like to write an equality method that has the following prototype:
public bool AreItemsEqual(IReadOnlyList<MyClass> objA, IReadOnlyList<MyClass> objB)
{
...
}
If and only if objA is logically equal to objB, then it returns true but otherwise return false. There's a lot of complexity here as it's sort of like a 2D array but also have to think about things that could be null.
Any easy implementation for this?