public bool AgregarLibroDigital(String titulo, String autor, String anho, String tipo) { bool retorno = true; foreach (Libro b in LibrosOnline) { if (titulo.Equals(b.Titulo)) { throw new Exception("Ya existe dicho libro fisico"); } } if (LibrosOnline.Capacity == LibrosOnline.Count) { throw new Exception("Lista llena"); } Libro a = new Libro(titulo, autor, anho, tipo); LibrosOnline.Add(a); Libros(); return(retorno); }