Exemple #1
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public bool Equals(GameplaySettings other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(AutoIncreaseSpeed == other.AutoIncreaseSpeed && GameSpeed.Equals(other.GameSpeed) && Equals(LeftPaddleType, other.LeftPaddleType) && Equals(RightPaddleType, other.RightPaddleType) && BallCount == other.BallCount && TimeLimit.Equals(other.TimeLimit) && ScoreLimit == other.ScoreLimit);
 }