You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ParionsCuites/ParionsCuite/ParionsCuite/Modeles/Boissons.cs

31 lines
638 B

using System;
using System.Security.Principal;
namespace ParionsCuite.Modeles
{
public class Boissons
{
public string Nom { get; set; }
public Boissons(string nom)
{
Nom = nom;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(obj, null)) return false;
if (ReferenceEquals(obj, this)) return true;
if (obj.GetType() != this.GetType()) return false;
return Equals(obj as Boissons);
}
public override string ToString()
{
return $"nom : {Nom} \n";
}
}
}