Ejemplo n.º 1
0
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public override void writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            System.Collections.ArrayList v = (System.Collections.ArrayList)val;

            ExtUtil.writeNumeric(out_Renamed, v.Count);
            for (int i = 0; i < v.Count; i++)
            {
                ExtUtil.write(out_Renamed, type == null ? v[i] : type.clone(v[i]));
            }
        }
Ejemplo n.º 2
0
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            //UPGRADE_TODO: Class 'java.util.HashMap' was converted to 'System.Collections.Hashtable' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilHashMap'"
            System.Collections.Hashtable h = (System.Collections.Hashtable)val;

            ExtUtil.writeNumeric(out_Renamed, h.Count);

            for (Object key: h.keySet())
            {
                //UPGRADE_TODO: Method 'java.util.HashMap.get' was converted to 'System.Collections.Hashtable.Item' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilHashMapget_javalangObject'"
                System.Object elem = h[key];

                ExtUtil.write(out_Renamed, keyType == null?key:keyType.clone(key));
                ExtUtil.write(out_Renamed, new ExtWrapTagged(elem));
            }
        }