Example #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            Sobre sobre = (Sobre)obj;

            if (_id != sobre.Id)
            {
                return(false);
            }

            return(true);
        }
Example #2
0
 /// <summary>
 /// Desligar un sobre de la inconsistencia.
 /// </summary>
 /// <param name="sobre">Sobre a quitar</param>
 public void quitarSobre(Sobre sobre)
 {
     _sobres.Remove(sobre);
 }
Example #3
0
 /// <summary>
 /// Ligar un sobre a la inconsistencia.
 /// </summary>
 /// <param name="sobre">Sobre a agregar</param>
 public void agregarSobre(Sobre sobre)
 {
     _sobres.Add(sobre);
 }