Ejemplo n.º 1
0
    public static void t1()
    {
        Dictionary <string, string> dss = new Dictionary <string, string>();
        Dictionary <int, int>       dii = new Dictionary <int, int>();

        dss.Add("a", "b");
        dss.Add("b", "a");
        dss.Add("a ", "cc");
        dss.Add("x", "b");

        dii.Add(1, 2);
        //dii.Add(1,33);
        dii.Add(9, 2);

        System.Collections.Hashtable ht = new System.Collections.Hashtable();
        ht.Add("ensd.,sd  ", dii);
        ht.Add(dii, " slaj,sjl sdjl ");
        dii.Add(4, 2);
        //ht.Add(dii, " sl -%*&(* l ");

        structCol sc = new structCol(enumType.varchar1, "id", "name");

        ht.Add(sc, 233);
        sc.enname = "name222";
        ht.Add(sc, 9);
        //structCol sc2 = new structCol(enumType.varchar1, "id", "name");
        //ht.Add(sc2, 466);
        structCol sc3 = new structCol(enumType.varchar1, "3", "333");

        ht.Add(sc3, 6);
    }
Ejemplo n.º 2
0
 public void AddCol(structCol new_col)
 {
     cols.Add(new_col);
 }