Пример #1
0
        public bool Equals(ArenaStat other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) &&
                   ArenaGameBaseVariantStats.OrderBy(agbvs => agbvs.GameBaseVariantId).SequenceEqual(other.ArenaGameBaseVariantStats.OrderBy(agbvs => agbvs.GameBaseVariantId)) &&
                   ArenaPlaylistStats.OrderBy(aps => aps.PlaylistId).SequenceEqual(other.ArenaPlaylistStats.OrderBy(aps => aps.PlaylistId)) &&
                   ArenaPlaylistStatsSeasonId.Equals(other.ArenaPlaylistStatsSeasonId) &&
                   Equals(HighestCsrAttained, other.HighestCsrAttained) &&
                   HighestCsrPlaylistId.Equals(other.HighestCsrPlaylistId) &&
                   HighestCsrSeasonId.Equals(other.HighestCsrSeasonId) &&
                   TopGameBaseVariants.OrderBy(aps => aps.GameBaseVariantId).SequenceEqual(other.TopGameBaseVariants.OrderBy(aps => aps.GameBaseVariantId)));
        }