if ((from A in ListaArticulos where A == Articulo select A).Any()) { throw new Exception("Los artículos no pueden estar duplicados"); } else { ListaArticulos.Add(ArticuloActual); }