示例#1
0
        public TValue Read(Stream stream)
        {
            var valueHolder = new ValueHolder <TValue>();

            br_.SetStream(stream);
            ReaderAgentGenerator <InternalStreamReader, TValue> .Run(br_, valueHolder);

            return(valueHolder.Value);
        }
示例#2
0
        public TValue Read(IDataReader dr)
        {
            var valueHolder = new ValueHolder <TValue>();

            dr_.SetDataReader(dr);
            ReaderAgentGenerator <InternalDataReader, TValue> .Run(dr_, valueHolder);

            return(valueHolder.Value);
        }
示例#3
0
        public TValue Read(BinaryReader br)
        {
            var valueHolder = new ValueHolder <TValue>();

            br_.SetBinaryReader(br);
            ReaderAgentGenerator <InternalBinaryReader, TValue> .Run(br_, valueHolder);

            return(valueHolder.Value);
        }