public void InsertarNodo(NodoHaash valor) { if (Lista == null) { Lista = new NodoHaash[1]; Lista[0] = new NodoHaash(); Lista[0] = valor; } else { NodoHaash[] temporal = Lista; Lista = new NodoHaash[temporal.Length + 1]; int cont = 0; while (cont < temporal.Length) { Lista[cont] = temporal[cont]; cont++; } Lista[cont] = valor; } }
public void AgregarPersona(int posicion, NodoHaash valor) { ArrayHash[posicion].InsertarNodo(valor); }