//UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" public override void readExternal(System.IO.BinaryReader in_Renamed, PrototypeFactory pf) { if (type != TYPE_SLOW_READ_ONLY) { System.Collections.IDictionary h; long size = ExtUtil.readNumeric(in_Renamed); switch (type) { case (TYPE_NORMAL): //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'" h = new System.Collections.Hashtable((int)size); break; case (TYPE_ORDERED): h = new OrderedMap(); break; case (TYPE_SLOW_COMPACT): h = new Map((int)size); break; default: //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'" h = new System.Collections.Hashtable((int)size); break; } for (int i = 0; i < size; i++) { System.Object key = ExtUtil.read(in_Renamed, keyType, pf); System.Object elem = ExtUtil.read(in_Renamed, dataType, pf); h[key] = elem; } val = h; } else { int size = ExtUtil.readInt(in_Renamed); System.Object[] k = new System.Object[size]; System.Object[] v = new System.Object[size]; for (int i = 0; i < size; i++) { k[i] = ExtUtil.read(in_Renamed, keyType, pf); v[i] = ExtUtil.read(in_Renamed, dataType, pf); } val = new Map(k, v); } }
/// <summary> Creates a new Preloader with default handlers</summary> public QuestionPreloader() { preloadHandlers = new Map(); initPreloadHandlers(); }