ajustement en cast carte Equals

master
loris OBRY 2 years ago
parent 0b8cefa6c4
commit 6239b3c949

@ -102,7 +102,7 @@ namespace Model.Classes
private string lienImage;
public Carte(string nom, string pouvoir, string strategie, int? note, string lienImage, string description)
{
Nom = nom;
this.nom = nom;
this.description = description;
this.pouvoir = pouvoir;
this.strategie = strategie;
@ -119,7 +119,7 @@ namespace Model.Classes
if (object.ReferenceEquals(right, null)) return false;
if (object.ReferenceEquals(right, this)) return true;
if (this.GetType() != right.GetType()) return false;
return this.Equals(right as Carte);
return this.Equals((Carte)right);
}
public bool Equals(Carte other)

Loading…
Cancel
Save