private string Listar(Bases posicion) { string texto = ""; if (posicion.Sig != inicio) { return(texto += posicion.ToString() + Listar(posicion.Sig)); } else { return(texto += posicion.ToString()); } }
//------------------------------------------------------------------------ public string EliminarInicio() { string texto = inicio.ToString(); Bases temp = inicio; inicio = inicio.Sig; nuevoFin(temp, temp); return(texto); }
//-------------------------------------------------------------------------- public string Eliminar(string nombreBase) { string texto = ""; if (inicio != null) { if (inicio.NombreBase == nombreBase) { texto += EliminarInicio(); } else { Bases temp = Buscar(nombreBase, inicio); Eliminar(temp, inicio); return(texto += temp.ToString()); } } return(texto); }