コード例 #1
0
ファイル: NT.cs プロジェクト: DeboraArzu/Fase-4
        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);
            }
        }
コード例 #2
0
ファイル: NT.cs プロジェクト: DeboraArzu/Fase-4
        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>());
            }
        }