Exemplo n.º 1
0
        /**
         * <summary>Read collection.</summary>
         */
        private static object ReadCollection(PortableReaderImpl ctx, Type type)
        {
            PortableCollectionInfo info = PortableCollectionInfo.Info(type);

            return(info.IsGenericCollection
                ? info.ReadGeneric(ctx)
                : PortableUtils.ReadCollection(ctx, null, null));
        }
Exemplo n.º 2
0
 /** <inheritdoc /> */
 public ICollection ReadCollection(PortableCollectionFactory factory,
                                   PortableCollectionAdder adder)
 {
     return(Read(r => PortableUtils.ReadCollection(r, factory, adder)));
 }
Exemplo n.º 3
0
 /** <inheritdoc /> */
 public ICollection ReadCollection(string fieldName, PortableCollectionFactory factory,
                                   PortableCollectionAdder adder)
 {
     return(ReadField(fieldName, r => PortableUtils.ReadCollection(r, factory, adder)));
 }