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