User1080785583 posted
I recommond using IEqualityComparer<IMatch>
Create an interface called IMatch that both Match and
UserMatch can implement.
Then make use of it like this
using System.Collections.Generic;
public class CompareValuesSample :IEqualityComparer<IMatch> {
public bool Equals(IMatch x, IMatch y){
// here is where you check
// plenty of samples online also
// interface is always a nice route to take for the unknowns
}
public int GetHashCode(IMatch obj){
// implement
}
}
// usage
var homeMatch = new List<HomeMatch>(); // IMatch
var awayMatch = new List<HomeMatch>(); // IMatch
bool equalScore = awayMatch.SequenceEqual(homeMatch, new CompareValuesSample());
// etc