public void busquedaClub(Nodo <T> raiz, string busqueda) { if (raiz != null) { List <Nodo <T> > listaB = new List <Nodo <T> >(); while (raiz != null) { DelegadoGenerico <string> delegadoGen = new DelegadoGenerico <string>(raiz.toString); string posicion = delegadoGen(raiz.club.ToString()); if (posicion == busqueda) { listaB.Add(raiz); } raiz = raiz.nodoSiguiente; } listaBusqueda = listaB; } }
public void busquedaNombre_Apellido(Nodo <T> raiz, string busqueda) { List <Nodo <T> > listaB = new List <Nodo <T> >(); if (raiz != null) { while (raiz != null) { DelegadoGenerico <string> delegadoGen = new DelegadoGenerico <string>(raiz.nombre_Apellido); string nombre_apellido = delegadoGen(raiz.first_name + "|" + raiz.last_name); if (nombre_apellido == busqueda) { listaB.Add(raiz); } raiz = raiz.nodoSiguiente; } listaBusqueda = listaB; } }