Ejemplo n.º 1
0
        public void TestImport2()
        {
            StrStrHashMap map = new StrStrHashMap();

            map.Add("a", "1");
            map.Add("b", "2");
            TestMap(map);
        }
Ejemplo n.º 2
0
        public override Object ImportValue(StructValue sv)
        {
            StrStrHashMap map = new StrStrHashMap();

            Object[] keysAndValues = ( Object[] )sv.Get(field);
            int      n             = keysAndValues.Length;
            int      index         = 0;

            while (index < n)
            {
                String key   = ( String )keysAndValues[index++];
                String value = ( String )keysAndValues[index++];
                map.Add(key, value);
            }

            return(map);
        }