/** * <summary>Read dictionary.</summary> */ private static object ReadDictionary(PortableReaderImpl ctx, Type type) { PortableCollectionInfo info = PortableCollectionInfo.Info(type); return(info.IsGenericDictionary ? info.ReadGeneric(ctx) : PortableUtils.ReadDictionary(ctx, null)); }
/** <inheritdoc /> */ public IDictionary ReadDictionary(PortableDictionaryFactory factory) { return(Read(r => PortableUtils.ReadDictionary(r, factory))); }
/** <inheritdoc /> */ public IDictionary ReadDictionary(string fieldName, PortableDictionaryFactory factory) { return(ReadField(fieldName, r => PortableUtils.ReadDictionary(r, factory))); }