public void set_elemento(string s, string element) { LISTA_FIRST newFirts = new LISTA_FIRST(); newFirts.setElemento(element); if (!this.lista.ContainsKey(s)) { this.lista.Add(s, newFirts); } else { lista [s].setElemento(element); } }
public void set_elementos(string s, List <string> otralist) { LISTA_FIRST newFirts = new LISTA_FIRST(); newFirts.setElementos(otralist.ToList <string>()); if (!this.lista.ContainsKey(s)) { this.lista.Add(s, newFirts); } else { lista [s].setElementos(otralist.ToList <string>()); } }