/**
         * <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));
        }
Esempio n. 2
0
 /** <inheritdoc /> */
 public IDictionary ReadDictionary(PortableDictionaryFactory factory)
 {
     return(Read(r => PortableUtils.ReadDictionary(r, factory)));
 }
Esempio n. 3
0
 /** <inheritdoc /> */
 public IDictionary ReadDictionary(string fieldName, PortableDictionaryFactory factory)
 {
     return(ReadField(fieldName, r => PortableUtils.ReadDictionary(r, factory)));
 }