public void Copy <TMODELE>(TMODELE modele) where TMODELE : ISynchronizable { TypeIsolant typeIsolant = modele as TypeIsolant; Nom = typeIsolant.Nom; Qualite = typeIsolant.Qualite; MiseAJour = typeIsolant.MiseAJour; Creation = typeIsolant.Creation; Suppression = typeIsolant.Suppression; }
public void Copy <TMODELE>(TMODELE modele) where TMODELE : ISynchronizable { Isolant isolant = modele as Isolant; Nom = isolant.Nom; MiseAJour = isolant.MiseAJour; Creation = isolant.Creation; Suppression = isolant.Suppression; TypeIsolant = isolant.TypeIsolant; }
public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } TypeIsolant t = (TypeIsolant)obj; return((Nom == t.Nom) && (Creation == t.Creation)); }