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