public void Copy <TMODELE>(TMODELE modele) where TMODELE : ISynchronizable { Finition finition = modele as Finition; Nom = finition.Nom; MiseAJour = finition.MiseAJour; Creation = finition.Creation; Suppression = finition.Suppression; TypeFinition = finition.TypeFinition; }
public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } Finition f = (Finition)obj; return((Nom == f.Nom) && (Creation == f.Creation)); }