Exemple #1
0
 /// <summary>
 /// Constructeur avec arguments
 /// </summary>
 /// <param name="id"></param>
 /// <param name="libelle"></param>
 /// <param name="description"></param>
 /// <param name="idType"></param>
 /// <param name="listDesIngredients"></param>
 public Met(int id, string libelle, string description, TypeRepas typeRepas, List <MetsIngredients> listDesIngredients)
 {
     Id                 = id;
     Libelle            = libelle;
     Description        = description;
     TypeRepas          = typeRepas;
     ListDesIngredients = listDesIngredients;
 }
Exemple #2
0
 /// <summary>
 ///  Override Equals Methode for met
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public override bool Equals(object obj)
 {
     return(obj is Met met &&
            Id == met.Id &&
            Libelle == met.Libelle &&
            Description == met.Description &&
            TypeRepas.Equals(met.TypeRepas) &&
            ListDesIngredients == met.ListDesIngredients);
 }