Esempio n. 1
0
 public PlayerScoreRecord(PlayerScore playerScore, SelectedGame selectedGame, string playerName, DateTime recordData)
 {
     PlayerScore  = playerScore;
     SelectedGame = selectedGame;
     PlayerName   = playerName;
     RecordDate   = recordData;
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            var hashCode = 2020233827;

            hashCode = hashCode * -1521134295 + PlayerScore.GetHashCode();
            hashCode = hashCode * -1521134295 + SelectedGame.GetHashCode();
            hashCode = hashCode * -1521134295 + PlayerName.GetHashCode();
            hashCode = hashCode * -1521134295 + RecordDate.GetHashCode();
            return(hashCode);
        }
Esempio n. 3
0
        public bool Equals(PlayerScoreRecord other)
        {
            if (other == null)
            {
                return(false);
            }
            if (other.GetType() != this.GetType())
            {
                return(false);
            }

            return(PlayerScore.Equals(other.PlayerScore) && SelectedGame.Equals(other.SelectedGame) &&
                   PlayerName == other.PlayerName &&
                   RecordDate == other.RecordDate);
        }